[Bug c/54787] Inconsistent -Wtype-limits warning for different-sized bitfields

hp at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Oct 3 03:31:00 GMT 2012


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54787

--- Comment #2 from Hans-Peter Nilsson <hp at gcc dot gnu.org> 2012-10-03 03:31:27 UTC ---
(In reply to comment #0)
> ...need to turn it off per-file (by adding "-Wno-error=type-limits" to
> compilations using the common idiom of -Werror together with warnings that
> include -Wtype-limits).

Correction: -Wno-error=type-limits only turns off the error-generating property
of the warning when used with -Werror; it does not turn off the warning itself.
 (To turn off the warning, use -Wno-type-limits.)



More information about the Gcc-bugs mailing list