Skip to content

Remove a warning from discarded-qualifiers#4058

Merged
kddnewton merged 1 commit intoruby:mainfrom
Earlopain:silence-discarded-qualifiers
Apr 1, 2026
Merged

Remove a warning from discarded-qualifiers#4058
kddnewton merged 1 commit intoruby:mainfrom
Earlopain:silence-discarded-qualifiers

Conversation

@Earlopain
Copy link
Copy Markdown
Collaborator

I've been seeing this for a while now:

../../../../ext/prism/../../src/memchr.c: In function ‘pm_memchr’:
../../../../ext/prism/../../src/memchr.c:35:16: warning: return discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
   35 |         return memchr(memory, character, number);
      |                ^~~~~~

I've been seeing this for a while now:
```
../../../../ext/prism/../../src/memchr.c: In function ‘pm_memchr’:
../../../../ext/prism/../../src/memchr.c:35:16: warning: return discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
   35 |         return memchr(memory, character, number);
      |                ^~~~~~
```
@kddnewton kddnewton merged commit dfafd3f into ruby:main Apr 1, 2026
68 checks passed
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.

2 participants