#17 feature request: refined options for redeclaration warnings

open
nobody
None
5
2007-01-11
2007-01-11
Martin Harper
No

Currently redeclaration warnings are set with this config flag:

+redeclared_var

I would like this to be split into two flags:
+redeclared_var
+redeclared_function

In my own project this would enable me to set:
-redeclared_var
+redeclared_function

My legacy code has a large number of redeclared variables, but shouldn't have any redeclared functions.

Discussion

  • Which warning should be produced if a var is redeclared as a function? What about a function that is declared as a var?