This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/44179] New: warn about sizeof(char)
- From: "zackw at panix dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 17 May 2010 22:08:14 -0000
- Subject: [Bug c/44179] New: warn about sizeof(char)
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
sizeof(char) is defined to be 1, and is therefore almost always unnecessary.
It would be nice if the C and C++ front ends could complain about it.
--
Summary: warn about sizeof(char)
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: enhancement
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: zackw at panix dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44179