<feed xmlns='http://www.w3.org/2005/Atom'>
<title>ruby.git/prism/memchr.c, branch master</title>
<subtitle>The Ruby Programming Language</subtitle>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/'/>
<entry>
<title>[ruby/prism] Remove a warning from `discarded-qualifiers`</title>
<updated>2026-04-01T11:14:42+00:00</updated>
<author>
<name>Earlopain</name>
<email>14981592+Earlopain@users.noreply.github.com</email>
</author>
<published>2026-04-01T11:00:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=ce398d7545f04bd8b81a908f5ae905ba290c13b9'/>
<id>ce398d7545f04bd8b81a908f5ae905ba290c13b9</id>
<content type='text'>
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);
      |                ^~~~~~
```

https://github.com/ruby/prism/commit/a3b1f10dbc
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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);
      |                ^~~~~~
```

https://github.com/ruby/prism/commit/a3b1f10dbc
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/prism] Make memchr implementation internal</title>
<updated>2026-03-20T13:37:43+00:00</updated>
<author>
<name>Kevin Newton</name>
<email>kddnewton@gmail.com</email>
</author>
<published>2026-03-17T13:30:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=ed53993ee4cdbff5f880b6c09493f9198551371c'/>
<id>ed53993ee4cdbff5f880b6c09493f9198551371c</id>
<content type='text'>
https://github.com/ruby/prism/commit/cdf8bed9ba
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/prism/commit/cdf8bed9ba
</pre>
</div>
</content>
</entry>
</feed>
