Skip to content

Commit b419e98

Browse files
authored
bench: suppress uninitialized variable warning
PR-URL: #5918 Closes: #5905 Reviewed-by: Athan Reines <[email protected]> Signed-off-by: hemantmm <[email protected]>
1 parent 6fa8a1b commit b419e98

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/node_modules/@stdlib/blas/base/sdot/benchmark/c/benchmark.length.c

+2
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ static double benchmark1( int iterations, int len ) {
109109
z = 0.0f;
110110
t = tic();
111111
for ( i = 0; i < iterations; i++ ) {
112+
// cppcheck-suppress uninitvar
112113
z = c_sdot( len, x, 1, y, 1 );
113114
if ( z != z ) {
114115
printf( "should not return NaN\n" );
@@ -144,6 +145,7 @@ static double benchmark2( int iterations, int len ) {
144145
z = 0.0f;
145146
t = tic();
146147
for ( i = 0; i < iterations; i++ ) {
148+
// cppcheck-suppress uninitvar
147149
z = c_sdot_ndarray( len, x, 1, 0, y, 1, 0 );
148150
if ( z != z ) {
149151
printf( "should not return NaN\n" );

0 commit comments

Comments
 (0)