Skip to content

chore: fix C lint errors - #13874

Open
Ashutosh-1304 wants to merge 1 commit into
stdlib-js:developfrom
Ashutosh-1304:fix/c-lint-const-parameter
Open

chore: fix C lint errors#13874
Ashutosh-1304 wants to merge 1 commit into
stdlib-js:developfrom
Ashutosh-1304:fix/c-lint-const-parameter

Conversation

@Ashutosh-1304

Copy link
Copy Markdown
Contributor

Resolves #13417.

Description

What is the purpose of this pull request?

This pull request:

  • adds const qualifiers to the shape and strides pointer parameters in stdlib_ndarray_is_contiguous since they are not modified within the function, resolving constParameterPointer lint warnings reported by cppcheck.

Related Issues

Does this pull request have any related issues?

This pull request has the following related issues:

Questions

Any questions for reviewers of this pull request?

No.

Other

Any other information relevant to this pull request? This may include screenshots, references, and/or implementation notes.

No.

Checklist

Please ensure the following tasks are completed before submitting this pull request.

  • Read, understood, and followed the [contributing guidelines][contributing].

AI Assistance

When authoring the changes proposed in this PR, did you use any kind of AI assistance?

  • Yes
  • No

@stdlib-js/reviewers

@Ashutosh-1304
Ashutosh-1304 requested a review from a team August 3, 2026 05:14
@stdlib-bot stdlib-bot added the Needs Review A pull request which needs code review. label Aug 3, 2026
@stdlib-bot

Copy link
Copy Markdown
Contributor

Coverage Report

Package Statements Branches Functions Lines
ndarray/base/assert/is-contiguous $\\color{green}135/135$
$\\color{green}+100.00\\%$
$\\color{green}4/4$
$\\color{green}+100.00\\%$
$\\color{green}1/1$
$\\color{green}+100.00\\%$
$\\color{green}135/135$
$\\color{green}+100.00\\%$

The above coverage report was generated for the changes in this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Needs Review A pull request which needs code review.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix C lint errors

2 participants