[Bug c/20535] New: add warning or error if storage size mismatch
olh at suse dot de
gcc-bugzilla@gcc.gnu.org
Fri Mar 18 17:31:00 GMT 2005
We see more and more code like this, in this case e2fsprogs blkid:
char c;
c=getopt(...)
getopt returns an int, and so does getc.
But gcc stores the thing in something that cant hold the return type.
It should warn with an obvious message, or even error out.
--
Summary: add warning or error if storage size mismatch
Product: gcc
Version: 3.3.3
Status: UNCONFIRMED
Severity: enhancement
Priority: P2
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: olh at suse dot de
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: powerpc-linux
GCC host triplet: powerpc-linux
GCC target triplet: powerpc-linux
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20535
More information about the Gcc-bugs
mailing list