This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/63886] float will fit into int with abs - possible missing warning Wabsolute-value
- From: "dcb314 at hotmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 07 Jan 2015 15:48:15 +0000
- Subject: [Bug c/63886] float will fit into int with abs - possible missing warning Wabsolute-value
- Auto-submitted: auto-generated
- References: <bug-63886-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63886
--- Comment #6 from David Binderman <dcb314 at hotmail dot com> ---
(In reply to Marek Polacek from comment #5)
> Seems like there's nothing to do for this bug.
Suggest there are two cases
1. double to float
2. double or float into any integer type.
The one warning, produced by -Wfloat-conversion, could be
split into two warnings, as per the two cases.
#1 isn't very useful, #2 seems useful to me.
Then put case #1 into -Wall.