[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 15:14:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84919
--- Comment #10 from H.J. Lu <hjl.tools at gmail dot com> ---
(In reply to H.J. Lu from comment #9)
> (In reply to Jakub Jelinek from comment #8)
> > Not aware of any right now, but 1) if the format string is not compile time
> > known, we don't know if it is %p or not 2) the format string parsing is done
>
> We only need to handle the known format string case.
>
> > in other passes (-Wformat code in FEs, and gimple-ssa-sprintf.c) compared to
> > the restrict warning.
>
> This shouldn't be the reason not to do it.
If there is no way to fix it, we should warn (char *) cases under -Wextra,
not under -Wall.
More information about the Gcc-bugs
mailing list