[Bug c/94746] -Wsizeof-pointer-div not triggered by system header macros

colomar.6.4.3 at gmail dot com gcc-bugzilla@gcc.gnu.org
Sat Apr 25 22:15:54 GMT 2020


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

--- Comment #2 from Alejandro Colomar <colomar.6.4.3 at gmail dot com> ---
Maybe the design is not perfect.

Maybe some special warnings should still be warned about when they are used in
user's code.  I don't think there are any possible false positives with this
warning.  But still I don't know.

Maybe I should add a pragma in the system header to enable `-Wsystem-headers`
for that macro.


More information about the Gcc-bugs mailing list