given this code: === Cut === static const char * const tcvnlocales[] = { "vi", 0 }; === Cut === There should be a "defined but not used" warning.
-- Summary: no unused warning for static arrays Product: gcc Version: 4.0.0 Status: UNCONFIRMED Severity: enhancement Priority: P2 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: mueller at kde dot org CC: gcc-bugs at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20562