Re:Useful GCC warning options not enabled by -Wall -Wextra
by warkdarrior on Wednesday October 04, 2017 @06:14PM
(#15405192)
You can enable/disable warnings in gcc on a line-by-line basis using pragmas:
https://gcc.gnu.org/onlinedocs/gcc/Diagnostic-Pragmas.html#D...
[ Parent
| on HN ]
Re:Useful GCC warning options not enabled by -Wall -Wextra
by usernam on Thursday October 05, 2017 @05:48AM
(#15407862)
I mentioned that. However, push/pop statements require a minimum of 3 lines of pragmas to suppress an unused statement. This doesn't work, you'll end up disabling warnings for entire functions.