These obnoxious warnings are on-by-default in current gcc, and I can’t find which option is needed to disable them. They’re generating warning-spam and preventing compiling with -Werror in code where the behavior gcc warns about is intentional (and comes from general-purpose macros that could not easily avoid generating such constants).
These obnoxious warnings are on-by-default in current gcc, and I can’t find which option
Share
After digging through the GCC source code, I found that the warnings you’ve described are part of the
-Woverflowoption. So just turn off that warning.By the way, this comment is in the code for the warning: