Skip to content

Fix C23 -Wdiscarded-qualifiers compiler warning#1338

Merged
bnoordhuis merged 1 commit intoquickjs-ng:masterfrom
bnoordhuis:fix-c23-warning
Feb 10, 2026
Merged

Fix C23 -Wdiscarded-qualifiers compiler warning#1338
bnoordhuis merged 1 commit intoquickjs-ng:masterfrom
bnoordhuis:fix-c23-warning

Conversation

@bnoordhuis
Copy link
Copy Markdown
Contributor

The return type of strrchr depends on the type of the first argument in C23. Not that quickjs-ng is a C23 project at this time but it's easy to fix.

Fixes: #1333

The return type of strrchr depends on the type of the first argument in
C23. Not that quickjs-ng is a C23 project at this time but it's easy to
fix.

Fixes: quickjs-ng#1333
@bnoordhuis bnoordhuis merged commit fb872c2 into quickjs-ng:master Feb 10, 2026
122 checks passed
@bnoordhuis bnoordhuis deleted the fix-c23-warning branch February 10, 2026 16:41
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.

Build errors under gcc 16

2 participants