Skip to content

Commit 69178aa

Browse files
authored
chore: ignore uninitvar
Signed-off-by: Muhammad Haris <[email protected]>
1 parent d9a62a7 commit 69178aa

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, 1000.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, 1000.0f, x, 1, 0 );
144146
if ( idx < -2 ) {
145147
printf( "unexpected result\n" );

0 commit comments

Comments
 (0)