[Bug c/84919] [8 Regression] error: passing argument 1 to restrict-qualified parameter aliases with argument 5 [-Werror=restrict]

hjl.tools at gmail dot com gcc-bugzilla@gcc.gnu.org
Mon Mar 19 16:02:00 GMT 2018


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84919

--- Comment #12 from H.J. Lu <hjl.tools at gmail dot com> ---
(In reply to Martin Sebor from comment #11)
> 
> Until then, the only way to avoid the warning that I can think of is to
> exclude from checking arguments passed through the ellipsis, but that will
> result in some false negatives for sprintf et al.  So the question is: do
> the benefits of the warning outweigh the cost of the false positives.
> 

It is a regression that GCC 8 can't compile lib/str_error_r.c in Linux kernel
without modifications.


More information about the Gcc-bugs mailing list