Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing const qualifiers from char* declarations #27104

Merged
merged 1 commit into from
Apr 11, 2025

Conversation

bradcray
Copy link
Member

The code here is longstanding, but has recently started getting tested in GASNet's test configurations as a result of #26236, which makes greater use of slurm by default. They compile in developer mode to get maximal errors and warnings, and that tripped a warning for some char* ... = "literal"; declarations that should've been const char*.

This suggests that we should potentially be dialing up warnings in our own nightly testing, which is somewhat thematically related to https://github.com/Cray/chapel-private/issues/3138

The code here is longstanding, but has recently started getting tested
in GASNet's test configurations as a result of chapel-lang#26236, which makes
greater use of slurm by default.  They compile in developer mode to
get maximal errors and warnings, and that tripped a warning for some
`char* ... = "literal";` declarations that should've been `const
char*`.

This suggests that we should potentially be dialing up warnings in our
own nightly testing, which is somewhat thematically related to
Cray/chapel-private#3138

---
Signed-off-by: Brad Chamberlain <[email protected]>
@bradcray bradcray merged commit cc52476 into chapel-lang:main Apr 11, 2025
10 checks passed
@bradcray bradcray deleted the const-char-slurm-gasnetrun branch April 11, 2025 23:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant