Skip to content

Commit 2fdaf8b

Browse files
committed
chore: lint error
--- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: na - task: lint_package_json status: na - task: lint_repl_help status: na - task: lint_javascript_src status: na - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: na - task: lint_javascript_benchmarks status: na - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: na - task: lint_c_benchmarks status: missing_dependencies - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: na - task: lint_typescript_tests status: na - task: lint_license_headers status: passed ---
1 parent 705bb56 commit 2fdaf8b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/node_modules/@stdlib/blas/ext/base/sindex-of/benchmark/c/benchmark.length.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ static double benchmark1( int iterations, int len ) {
107107
idx = -1;
108108
t = tic();
109109
for ( i = 0; i < iterations; i++ ) {
110+
// cppcheck-suppress uninitvar
110111
idx = stdlib_strided_sindexOf( len, 20000.0f, x, 1 );
111112
if ( idx < -2 ) {
112113
printf( "unexpected result\n" );
@@ -140,6 +141,7 @@ static double benchmark2( int iterations, int len ) {
140141
idx = -1;
141142
t = tic();
142143
for ( i = 0; i < iterations; i++ ) {
144+
// cppcheck-suppress uninitvar
143145
idx = stdlib_strided_sindexOf_ndarray( len, 20000.0f, x, 1, 0 );
144146
if ( idx < -2 ) {
145147
printf( "unexpected result\n" );

0 commit comments

Comments
 (0)