This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/23587] Missing "warning: comparison is always false due to limited range of data type"
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 25 Oct 2005 20:24:04 -0000
- Subject: [Bug c/23587] Missing "warning: comparison is always false due to limited range of data type"
- References: <bug-23587-629@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from pinskia at gcc dot gnu dot org 2005-10-25 20:24 -------
t.c: In function ?void c(unsigned int)?:
t.c:17: warning: comparison of unsigned expression < 0 is always false
t.c: In function ?void d(long unsigned int)?:
t.c:23: warning: comparison of unsigned expression < 0 is always false
t.c: In function ?void e(long long unsigned int)?:
t.c:29: warning: comparison of unsigned expression < 0 is always false
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|c++ |c
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23587