This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/82018] -Wextra should imply -Wconversion-extra
- From: "tkoenig at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 30 Aug 2017 13:44:39 +0000
- Subject: [Bug fortran/82018] -Wextra should imply -Wconversion-extra
- Auto-submitted: auto-generated
- References: <bug-82018-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82018
--- Comment #7 from Thomas Koenig <tkoenig at gcc dot gnu.org> ---
I expect strong negative feedback if -Wextra starts emitting
lots of warnings about code which is not problematic. This
would diminish the usefulness of -Wextra, and people will
simply remove it from their Makefiles.
Another alternative would be to have three flags:
-Wconversion like now
-Wconversion-extra which catches stuff like i=2.0 (without rounding errors),
to be enabled by -Wextra
-Wconversion-all which also catches stuff which is always harmless, like
i8=i4, c4=r4 etc.