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.

Reply via email to