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

2024-05-15 Thread alx at kernel dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94746 Alejandro Colomar changed: What|Removed |Added Resolution|--- |WONTFIX Status|UNCONFIRM

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

2020-04-25 Thread colomar.6.4.3 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94746 --- Comment #3 from Alejandro Colomar --- I tried to use ``#pragma GCC diagnostic`` to enable ``-Wsystem-headers`` only for that macro. It bloated me with completely unrelated errors from libraries. So it is not an option. The only workaround

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

2020-04-25 Thread colomar.6.4.3 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94746 --- Comment #2 from Alejandro Colomar --- 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

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

2020-04-25 Thread asolokha at gmx dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94746 Arseny Solokha changed: What|Removed |Added CC||asolokha at gmx dot com --- Comment #1