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