Skip to content

chore: fix C lint errors (issue #16454) - #16476

Closed
utkarshpatwa393-sys wants to merge 1 commit into
stdlib-js:developfrom
utkarshpatwa393-sys:chore/fix-c-lint-errors-16454
Closed

utkarshpatwa393-sys wants to merge 1 commit into
stdlib-js:developfrom
utkarshpatwa393-sys:chore/fix-c-lint-errors-16454

Conversation

@utkarshpatwa393-sys

Copy link
Copy Markdown

Resolves #16454.

Description

This pull request:

  • Declares s1 and s2 as pointers to const in lib/node_modules/@stdlib/ndarray/base/unary/src/dispatch.c to address C linting style errors.

Related Issues

This pull request has the following related issues:

Reference Packages

None.

Questions

No.

Other

No.

Checklist

AI Assistance

  • Yes
  • No

If you answered "yes" above, how did you use AI assistance?

  • Code generation (e.g., when writing an implementation or fixing a bug)
  • Test/benchmark generation
  • Documentation (including examples)
  • Research and understanding

Disclosure

I consulted AI to locate the variable declarations flagged by cppcheck in issue #16454 and verified compilation locally with clang.


@stdlib-js/reviewers

Declare 's1' and 's2' as pointers to const in dispatch.c to satisfy cppcheck linting.

Resolves stdlib-js#16454

Signed-off-by: Utkarsh patwa <utkarshpatwa393@gmail.com>
@utkarshpatwa393-sys
utkarshpatwa393-sys requested a review from a team November 3, 2026 15:41
@stdlib-bot stdlib-bot added Needs Review A pull request which needs code review. First-time Contributor A pull request from a contributor who has never previously committed to the project repository. labels Nov 3, 2026
@stdlib-bot

Copy link
Copy Markdown
Contributor

👋 Hi there! 👋

And thank you for opening your first pull request! We will review it shortly. 🏃 💨

Getting Started

Next Steps

  1. A project maintainer will approve GitHub Actions workflows for your PR.
  2. All CI checks must pass before your submission can be fully reviewed.
  3. You'll need to address any failures in linting or unit tests.

Running Tests Locally

You can use make to run any of the CI commands locally from the root directory of the stdlib repository:

# Run tests for all packages in the math namespace:
make test TESTS_FILTER=".*/@stdlib/math/.*"

# Run benchmarks for a specific package:
make benchmark BENCHMARKS_FILTER=".*/@stdlib/math/base/special/sin/.*"

If you haven't heard back from us within two weeks, please ping us by tagging the "reviewers" team in a comment on this PR.

If you have any further questions while waiting for a response, please join our Zulip community to chat with project maintainers and other community members.

We appreciate your contribution!

Documentation Links

@stdlib-bot stdlib-bot added Good First PR A pull request resolving a Good First Issue. Potential Duplicate There might be another pull request resolving the same issue. labels Nov 3, 2026
@kgryte

kgryte commented Nov 22, 2026

Copy link
Copy Markdown
Member

Ref: #16464

@kgryte kgryte added the autoclose: Already Resolved Pull request which should be auto-closed due proposed changes duplicating already included changes. label Nov 22, 2026
@stdlib-bot

Copy link
Copy Markdown
Contributor

Thank you for working on this pull request. However, we cannot accept your contribution as the issue this pull request seeks to resolve has already been addressed in a different pull request or commit.

Thank you again for your interest in stdlib, and we look forward to reviewing your future contributions.

@stdlib-bot stdlib-bot closed this Nov 22, 2026
@stdlib-bot stdlib-bot removed the Needs Review A pull request which needs code review. label Nov 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

autoclose: Already Resolved Pull request which should be auto-closed due proposed changes duplicating already included changes. First-time Contributor A pull request from a contributor who has never previously committed to the project repository. Good First PR A pull request resolving a Good First Issue. Potential Duplicate There might be another pull request resolving the same issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix C lint errors

3 participants