X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=cparser.1;h=3700bd904248635515cbaff63578f1865b1e2683;hb=02d9198a5f0b8133e882e5d764acab5c74701b58;hp=f68901ddd55395580460249b2c9588cc6408d2a7;hpb=327acad4c5abb6d3f76de0269286036e4ae3f3c3;p=cparser diff --git a/cparser.1 b/cparser.1 index f68901d..3700bd9 100644 --- a/cparser.1 +++ b/cparser.1 @@ -119,7 +119,7 @@ In particular these are .Fl Wpointer-arith , .Fl Wredundant-decls , .Fl Wreturn-type , -.Fl Wshadow , +.Fl Wshadow-local , .Fl Wsign-compare , .Fl Wstrict-prototypes , .Fl Wswitch-enum , @@ -147,9 +147,12 @@ Treat warnings as errors, i.e. do not continue after parsing when a warning is e .It Fl Werror-implicit-function-declaration Generate an error, when calling a function without a prior declaration. .It Fl Wextra +(Alias +.Fl W Ns ) Activate some more warnings. In particular these are .Fl Wempty-statement , +.Fl Wshadow , .Fl Wunused-parameter , .Fl Wunused-value . .It Fl Wfatal-errors @@ -205,6 +208,10 @@ Warn if + or - is used as operand of << or >>, e.g. x\ +\ y\ <<\ z. Warn about redundant declarations, i.e. multiple declarations of the same object or static forward declarations which have no use before their definition. .It Fl Wshadow Warn when a new declaration shadows another declaration with the same name in an outer scope. +.It Fl Wshadow-local +Like +.Fl Wshadow , +but only warn if the shadowed declaration is not global, e.g. a local variable shadows a parameter or another local variable. .It Fl Wunreachable-code Warn when the compiler determines that a statement (or in some cases a part thereof) will never be executed. .It Fl Wunused