This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/87656] Useful flags to enable with -Wall or -Wextra
- From: "hoganmeier at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 14 Nov 2018 02:26:41 +0000
- Subject: [Bug c++/87656] Useful flags to enable with -Wall or -Wextra
- Auto-submitted: auto-generated
- References: <bug-87656-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87656
krux <hoganmeier at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |hoganmeier at gmail dot com
--- Comment #3 from krux <hoganmeier at gmail dot com> ---
-Wshadow, at least the local variant, would indeed be really nice in -Wall or
at least -Wextra. The global one is still too noisy because of class
constructors: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78147
I always use -Wall -W -Wshadow -Wconversion -Wsign-conversion.