Skip to content

Commit ed3afe7

Browse files
authored
chore: fix C lint errors
PR-URL: #9571 Closes: #9570 Reviewed-by: Athan Reines <kgryte@gmail.com>
1 parent 9422059 commit ed3afe7

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

lib/node_modules/@stdlib/ndarray/base/napi/unary/src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ void stdlib_ndarray_napi_unary( napi_env env, napi_callback_info info, const str
8080
return;
8181
}
8282
// Extract the ndarray data types:
83-
int32_t types[] = {
83+
const int32_t types[] = {
8484
stdlib_ndarray_dtype( arrays[ 0 ] ),
8585
stdlib_ndarray_dtype( arrays[ 1 ] )
8686
};

lib/node_modules/@stdlib/stats/strided/sstdevwd/benchmark/c/benchmark.length.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ static double benchmark( int iterations, int len ) {
107107
v = 0.0f;
108108
t = tic();
109109
for ( i = 0; i < iterations; i++ ) {
110+
// cppcheck-suppress uninitvar
110111
v = stdlib_strided_sstdevwd( len, 1.0f, x, 1 );
111112
if ( v != v ) {
112113
printf( "should not return NaN\n" );

0 commit comments

Comments
 (0)