Skip to content

Commit 886e85a

Browse files
docs: fix C lint errors
PR-URL: #5408 Closes: #5359 Reviewed-by: Philipp Burckhardt <pburckhardt@outlook.com>
1 parent 7141f46 commit 886e85a

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

lib/node_modules/@stdlib/math/base/special/nonfibonacci/src/addon.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,5 @@
1919
#include "stdlib/math/base/special/nonfibonacci.h"
2020
#include "stdlib/math/base/napi/unary.h"
2121

22+
// cppcheck-suppress shadowFunction
2223
STDLIB_MATH_BASE_NAPI_MODULE_I_D( stdlib_base_nonfibonacci )

lib/node_modules/@stdlib/stats/base/dvarm/examples/c/example.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
int main( void ) {
2424
// Create a strided array:
25-
double x[] = { 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 };
25+
const double x[] = { 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 };
2626

2727
// Specify the number of elements:
2828
int64_t N = 4;

lib/node_modules/@stdlib/stats/base/svariance/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_svariance( len, 1.0f, x, 1 );
111112
if ( v != v ) {
112113
printf( "should not return NaN\n" );

0 commit comments

Comments
 (0)