Thread (36 messages) 36 messages, 9 authors, 2024-07-06

Re: [PATCH v1] Remove 'restrict' from 'nptr' in strtol(3)-like functions

From: Richard Earnshaw (lists) <hidden>
Date: 2024-07-05 16:21:29

On 05/07/2024 17:11, Jonathan Wakely via Gcc wrote:
On Fri, 5 Jul 2024 at 16:54, Alejandro Colomar via Gcc [off-list ref] wrote:
quoted
At least, I hope there's consensus that while current GCC doesn't warn
about this, ideally it should, which means it should warn for valid uses
of strtol(3), which means strtol(3) should be fixed, in all of ISO,
POSIX, and glibc.
I'm not convinced. It doesn't look like anybody else is convinced. I
wouldn't call that consensus.
And what's more this prototype is defined by the C standard.  If you have a beef with that, then you should take it up with the committee; I can't see GCC wanting to be different on this.

R.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help