Skip to content

Commit dadabba

Browse files
committed
chore: resolve C compiler warnings
--- 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_pkg_readmes status: na - task: lint_markdown_docs status: na - 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: passed - task: lint_c_examples status: na - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: passed - task: lint_typescript_tests status: na - task: lint_license_headers status: passed ---
1 parent fa820b3 commit dadabba

24 files changed

Lines changed: 120 additions & 24 deletions

File tree

lib/node_modules/@stdlib/stats/base/ndarray/dmax/src/addon.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,12 @@ static napi_value addon( napi_env env, napi_callback_info info ) {
4545
assert( status == napi_ok );
4646
return NULL;
4747
}
48+
// Create a const-qualified view of the argument pointer list:
49+
const struct ndarray *arr[ 1 ] = {
50+
arrays[ 0 ]
51+
};
4852
// Perform computation:
49-
STDLIB_NAPI_CREATE_DOUBLE( env, stdlib_stats_dmax( arrays ), v );
53+
STDLIB_NAPI_CREATE_DOUBLE( env, stdlib_stats_dmax( arr ), v );
5054

5155
// Free allocated memory:
5256
stdlib_ndarray_free( arrays[ 0 ] );

lib/node_modules/@stdlib/stats/base/ndarray/dmaxabs/src/addon.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,12 @@ static napi_value addon( napi_env env, napi_callback_info info ) {
4545
assert( status == napi_ok );
4646
return NULL;
4747
}
48+
// Create a const-qualified view of the argument pointer list:
49+
const struct ndarray *arr[ 1 ] = {
50+
arrays[ 0 ]
51+
};
4852
// Perform computation:
49-
STDLIB_NAPI_CREATE_DOUBLE( env, stdlib_stats_dmaxabs( arrays ), v );
53+
STDLIB_NAPI_CREATE_DOUBLE( env, stdlib_stats_dmaxabs( arr ), v );
5054

5155
// Free allocated memory:
5256
stdlib_ndarray_free( arrays[ 0 ] );

lib/node_modules/@stdlib/stats/base/ndarray/dmean/src/addon.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,12 @@ static napi_value addon( napi_env env, napi_callback_info info ) {
4545
assert( status == napi_ok );
4646
return NULL;
4747
}
48+
// Create a const-qualified view of the argument pointer list:
49+
const struct ndarray *arr[ 1 ] = {
50+
arrays[ 0 ]
51+
};
4852
// Perform computation:
49-
STDLIB_NAPI_CREATE_DOUBLE( env, stdlib_stats_dmean( arrays ), v );
53+
STDLIB_NAPI_CREATE_DOUBLE( env, stdlib_stats_dmean( arr ), v );
5054

5155
// Free allocated memory:
5256
stdlib_ndarray_free( arrays[ 0 ] );

lib/node_modules/@stdlib/stats/base/ndarray/dmeankbn/src/addon.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,12 @@ static napi_value addon( napi_env env, napi_callback_info info ) {
4545
assert( status == napi_ok );
4646
return NULL;
4747
}
48+
// Create a const-qualified view of the argument pointer list:
49+
const struct ndarray *arr[ 1 ] = {
50+
arrays[ 0 ]
51+
};
4852
// Perform computation:
49-
STDLIB_NAPI_CREATE_DOUBLE( env, stdlib_stats_dmeankbn( arrays ), v );
53+
STDLIB_NAPI_CREATE_DOUBLE( env, stdlib_stats_dmeankbn( arr ), v );
5054

5155
// Free allocated memory:
5256
stdlib_ndarray_free( arrays[ 0 ] );

lib/node_modules/@stdlib/stats/base/ndarray/dmeankbn2/src/addon.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,12 @@ static napi_value addon( napi_env env, napi_callback_info info ) {
4545
assert( status == napi_ok );
4646
return NULL;
4747
}
48+
// Create a const-qualified view of the argument pointer list:
49+
const struct ndarray *arr[ 1 ] = {
50+
arrays[ 0 ]
51+
};
4852
// Perform computation:
49-
STDLIB_NAPI_CREATE_DOUBLE( env, stdlib_stats_dmeankbn2( arrays ), v );
53+
STDLIB_NAPI_CREATE_DOUBLE( env, stdlib_stats_dmeankbn2( arr ), v );
5054

5155
// Free allocated memory:
5256
stdlib_ndarray_free( arrays[ 0 ] );

lib/node_modules/@stdlib/stats/base/ndarray/dmeanlipw/src/addon.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,12 @@ static napi_value addon( napi_env env, napi_callback_info info ) {
4545
assert( status == napi_ok );
4646
return NULL;
4747
}
48+
// Create a const-qualified view of the argument pointer list:
49+
const struct ndarray *arr[ 1 ] = {
50+
arrays[ 0 ]
51+
};
4852
// Perform computation:
49-
STDLIB_NAPI_CREATE_DOUBLE( env, stdlib_stats_dmeanlipw( arrays ), v );
53+
STDLIB_NAPI_CREATE_DOUBLE( env, stdlib_stats_dmeanlipw( arr ), v );
5054

5155
// Free allocated memory:
5256
stdlib_ndarray_free( arrays[ 0 ] );

lib/node_modules/@stdlib/stats/base/ndarray/dmeanors/src/addon.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,12 @@ static napi_value addon( napi_env env, napi_callback_info info ) {
4545
assert( status == napi_ok );
4646
return NULL;
4747
}
48+
// Create a const-qualified view of the argument pointer list:
49+
const struct ndarray *arr[ 1 ] = {
50+
arrays[ 0 ]
51+
};
4852
// Perform computation:
49-
STDLIB_NAPI_CREATE_DOUBLE( env, stdlib_stats_dmeanors( arrays ), v );
53+
STDLIB_NAPI_CREATE_DOUBLE( env, stdlib_stats_dmeanors( arr ), v );
5054

5155
// Free allocated memory:
5256
stdlib_ndarray_free( arrays[ 0 ] );

lib/node_modules/@stdlib/stats/base/ndarray/dmeanpn/src/addon.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,12 @@ static napi_value addon( napi_env env, napi_callback_info info ) {
4545
assert( status == napi_ok );
4646
return NULL;
4747
}
48+
// Create a const-qualified view of the argument pointer list:
49+
const struct ndarray *arr[ 1 ] = {
50+
arrays[ 0 ]
51+
};
4852
// Perform computation:
49-
STDLIB_NAPI_CREATE_DOUBLE( env, stdlib_stats_dmeanpn( arrays ), v );
53+
STDLIB_NAPI_CREATE_DOUBLE( env, stdlib_stats_dmeanpn( arr ), v );
5054

5155
// Free allocated memory:
5256
stdlib_ndarray_free( arrays[ 0 ] );

lib/node_modules/@stdlib/stats/base/ndarray/dmeanpw/src/addon.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,12 @@ static napi_value addon( napi_env env, napi_callback_info info ) {
4545
assert( status == napi_ok );
4646
return NULL;
4747
}
48+
// Create a const-qualified view of the argument pointer list:
49+
const struct ndarray *arr[ 1 ] = {
50+
arrays[ 0 ]
51+
};
4852
// Perform computation:
49-
STDLIB_NAPI_CREATE_DOUBLE( env, stdlib_stats_dmeanpw( arrays ), v );
53+
STDLIB_NAPI_CREATE_DOUBLE( env, stdlib_stats_dmeanpw( arr ), v );
5054

5155
// Free allocated memory:
5256
stdlib_ndarray_free( arrays[ 0 ] );

lib/node_modules/@stdlib/stats/base/ndarray/dmeanwd/src/addon.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,12 @@ static napi_value addon( napi_env env, napi_callback_info info ) {
4545
assert( status == napi_ok );
4646
return NULL;
4747
}
48+
// Create a const-qualified view of the argument pointer list:
49+
const struct ndarray *arr[ 1 ] = {
50+
arrays[ 0 ]
51+
};
4852
// Perform computation:
49-
STDLIB_NAPI_CREATE_DOUBLE( env, stdlib_stats_dmeanwd( arrays ), v );
53+
STDLIB_NAPI_CREATE_DOUBLE( env, stdlib_stats_dmeanwd( arr ), v );
5054

5155
// Free allocated memory:
5256
stdlib_ndarray_free( arrays[ 0 ] );

0 commit comments

Comments
 (0)