Skip to content

Commit 3192ef5

Browse files
authored
chore: fix C lint errors
PR-URL: #7646 Closes: #7645 Reviewed-by: Philipp Burckhardt <pburckhardt@outlook.com>
1 parent 708320e commit 3192ef5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/node_modules/@stdlib/blas/ext/base/dnansumkbn2/benchmark/c/benchmark.length.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ static double benchmark1( int iterations, int len ) {
111111
v = 0.0;
112112
t = tic();
113113
for ( i = 0; i < iterations; i++ ) {
114+
// cppcheck-suppress uninitvar
114115
v = stdlib_strided_dnansumkbn2( len, x, 1 );
115116
if ( v != v ) {
116117
printf( "should not return NaN\n" );
@@ -148,6 +149,7 @@ static double benchmark2( int iterations, int len ) {
148149
v = 0.0;
149150
t = tic();
150151
for ( i = 0; i < iterations; i++ ) {
152+
// cppcheck-suppress uninitvar
151153
v = stdlib_strided_dnansumkbn2_ndarray( len, x, 1, 0 );
152154
if ( v != v ) {
153155
printf( "should not return NaN\n" );

0 commit comments

Comments
 (0)