Declaring variables and parameters as constants is a very useful feature that should be used as much as possible. Therefore it would be very useful to have an option to warn when something is not declared as constant eventhough it could be, at least in C++ and probably in other languages as well.
-- Summary: want optional warning for non-constant declarations that could be constant Product: gcc Version: unknown Status: UNCONFIRMED Severity: enhancement Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: sigra at home dot se http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25845