This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/54787] Inconsistent -Wtype-limits warning for different-sized bitfields
- From: "hp at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 03 Oct 2012 03:31:27 +0000
- Subject: [Bug c/54787] Inconsistent -Wtype-limits warning for different-sized bitfields
- Auto-submitted: auto-generated
- References: <bug-54787-4@http.gcc.gnu.org/bugzilla/>
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.)