Fix C lint errors

Open Beginner friendly
#5,362 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
65/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Stale
Tech stack
c, github-actions
Domain
ci-cd, tooling

Research direction

Start with lib/node_modules/@stdlib/ndarray/base/nullary/src/f_as_t.c and inspect the macro expansions reported at the listed lines. Use workflow run 13468489600 as the reference for the C lint failures, then rerun the C lint workflow to confirm that all constVariablePointer warnings are resolved.

Written by the indexing model from the issue text.

Description

C Linting Failures

Linting failures were detected in the automated lint workflow run.

Workflow Details
Error Details
lib/node_modules/@stdlib/ndarray/base/nullary/src/f_as_t.c:196:2: style: Variable 'x1' can be declared as pointer to const [constVariablePointer]
 STDLIB_NDARRAY_NULLARY_1D_LOOP_CLBK( float )
 ^
lib/node_modules/@stdlib/ndarray/base/nullary/src/f_as_t.c:279:2: style: Variable 'x1' can be declared as pointer to const [constVariablePointer]
 STDLIB_NDARRAY_NULLARY_2D_LOOP_CLBK( float )
 ^
lib/node_modules/@stdlib/ndarray/base/nullary/src/f_as_t.c:362:2: style: Variable 'x1' can be declared as pointer to const [constVariablePointer]
 STDLIB_NDARRAY_NULLARY_2D_BLOCKED_LOOP_CLBK( float )
 ^
lib/node_modules/@stdlib/ndarray/base/nullary/src/f_as_t.c:445:2: style: Variable 'x1' can be declared as pointer to const [constVariablePointer]
 STDLIB_NDARRAY_NULLARY_3D_LOOP_CLBK( float )
 ^
lib/node_modules/@stdlib/ndarray/base/nullary/src/f_as_t.c:528:2: style: Variable 'x1' can be declared as pointer to const [constVariablePointer]
 STDLIB_NDARRAY_NULLARY_3D_BLOCKED_LOOP_CLBK( float )
 ^
lib/node_modules/@stdlib/ndarray/base/nullary/src/f_as_t.c:611:2: style: Variable 'x1' can be declared as pointer to const [constVariablePointer]
 STDLIB_NDARRAY_NULLARY_4D_LOOP_CLBK( float )
 ^
lib/node_modules/@stdlib/ndarray/base/nullary/src/f_as_t.c:694:2: style: Variable 'x1' can be declared as pointer to const [constVariablePointer]
 STDLIB_NDARRAY_NULLARY_4D_BLOCKED_LOOP_CLBK( float )
 ^
lib/node_modules/@stdlib/ndarray/base/nullary/src/f_as_t.c:777:2: style: Variable 'x1' can be declared as pointer to const [constVariablePointer]
 STDLIB_NDARRAY_NULLARY_5D_LOOP_CLBK( float )
 ^
lib/node_modules/@stdlib/ndarray/base/nullary/src/f_as_t.c:860:2: style: Variable 'x1' can be declared as pointer to const [constVariablePointer]
 STDLIB_NDARRAY_NULLARY_5D_BLOCKED_LOOP_CLBK( float )
 ^
lib/node_modules/@stdlib/ndarray/base/nullary/src/f_as_t.c:943:2: style: Variable 'x1' can be declared as pointer to const [constVariablePointer]
 STDLIB_NDARRAY_NULLARY_6D_LOOP_CLBK( float )
 ^
lib/node_modules/@stdlib/ndarray/base/nullary/src/f_as_t.c:1026:2: style: Variable 'x1' can be declared as pointer to const [constVariablePointer]
 STDLIB_NDARRAY_NULLARY_6D_BLOCKED_LOOP_CLBK( float )
 ^
lib/node_modules/@stdlib/ndarray/base/nullary/src/f_as_t.c:1109:2: style: Variable 'x1' can be declared as pointer to const [constVariablePointer]
 STDLIB_NDARRAY_NULLARY_7D_LOOP_CLBK( float )
 ^
lib/node_modules/@stdlib/ndarray/base/nullary/src/f_as_t.c:1192:2: style: Variable 'x1' can be declared as pointer to const [constVariablePointer]
 STDLIB_NDARRAY_NULLARY_7D_BLOCKED_LOOP_CLBK( float )
 ^
lib/node_modules/@stdlib/ndarray/base/nullary/src/f_as_t.c:1275:2: style: Variable 'x1' can be declared as pointer to const [constVariablePointer]
 STDLIB_NDARRAY_NULLARY_8D_LOOP_CLBK( float )
 ^
lib/node_modules/@stdlib/ndarray/base/nullary/src/f_as_t.c:1358:2: style: Variable 'x1' can be declared as pointer to const [constVariablePointer]
 STDLIB_NDARRAY_NULLARY_8D_BLOCKED_LOOP_CLBK( float )
 ^
lib/node_modules/@stdlib/ndarray/base/nullary/src/f_as_t.c:1441:2: style: Variable 'x1' can be declared as pointer to const [constVariablePointer]
 STDLIB_NDARRAY_NULLARY_9D_LOOP_CLBK( float )
 ^
lib/node_modules/@stdlib/ndarray/base/nullary/src/f_as_t.c:1524:2: style: Variable 'x1' can be declared as pointer to const [constVariablePointer]
 STDLIB_NDARRAY_NULLARY_9D_BLOCKED_LOOP_CLBK( float )
 ^
lib/node_modules/@stdlib/ndarray/base/nullary/src/f_as_t.c:1607:2: style: Variable 'x1' can be declared as pointer to const [constVariablePointer]
 STDLIB_NDARRAY_NULLARY_10D_LOOP_CLBK( float )
 ^
lib/node_modules/@stdlib/ndarray/base/nullary/src/f_as_t.c:1690:2: style: Variable 'x1' can be declared as pointer to const [constVariablePointer]
 STDLIB_NDARRAY_NULLARY_10D_BLOCKED_LOOP_CLBK( float )
 ^
lib/node_modules/@stdlib/ndarray/base/nullary/src/f_as_t.c:1773:2: style: Variable 'x1' can be declared as pointer to const [constVariablePointer]
 STDLIB_NDARRAY_NULLARY_ND_LOOP_CLBK( float )
 ^
Dominant language
JavaScript
Stars
6k
Forks
1.3k
Avg merge
1d 1h
Merged PRs (30d)
559

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from stdlib-js/stdlib

All issues in stdlib-js/stdlib

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.