X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;ds=sidebyside;f=cparser.1;h=87dedd2d2e6d0a028cc867a577ddc226edd47601;hb=c080804a9ae61e4ba0ec6fc7288c81c326fa9ddb;hp=1b7a266ef6eeba91470e50d4c00bc9f50b304bbf;hpb=bb8544d38aaa4c716603a5d565c3ff3840454ffc;p=cparser diff --git a/cparser.1 b/cparser.1 index 1b7a266..87dedd2 100644 --- a/cparser.1 +++ b/cparser.1 @@ -1,5 +1,5 @@ .\" Please adjust this date whenever revising the manpage. -.Dd December 21, 2008 +.Dd June 21, 2011 .Dt CPARSER 1 .Sh NAME .Nm cparser @@ -14,7 +14,7 @@ .Op Fl - Ns Oo Cm no- Oc Ns Cm ms .Op Fl g .Op Fl O Ns Ar level -.Op Fl W Ns Oo Cm no- Ns | Ns Cm error- Oc Ns Ar warn +.Op Fl W Ns Oo Cm no- Oc Ns Oo Cm error= Oc Ns Ar warning .Op Fl w .Op Fl I Ar dir .Op Fl L Ar dir @@ -91,14 +91,17 @@ format. .\" TODO expand Select the optimization level. Sensible values are between 0 and 4, inclusive. -.It Fl W Ns Oo Cm no- Ns | Ns Cm error- Oc Ns Ar warn .\" TODO expand -Disable/enable a specific warning. -Every warning option has a corresponding -.Cm no- -switch to deactivate it and an -.Cm error- -switch to turn it into an error. +.It Fl W Ns Ar warning +Enable the specified warning. +.It Fl Wno- Ns Ar warning +Disable the specified warning. +.It Fl Werror= Ns Ar warning +Enable the specified warning and turn it into an error. +.It Fl Wno-error= Ns Ar warning +Force the specified warning to only be a warning, even in the presence of +.Fl Werror . +This neither enables nor disables the warning itself. .It Fl Waddress Warn about suspicious use of addresses, like using the address of a function or variable as boolean condition or comparing with the address of a string literal. .It Fl Waggregate-return @@ -252,6 +255,9 @@ Set a frontend or optimizer option. Use .Fl fhelp to get a list of supported optimizer options. +.It Fl f Ns Oo Cm no- Oc Ns Cm diagnostics-show-option +Show the switch, which controls a warning, after each warning. +Default is on. .It Fl finput-charset= Ns Ar encoding Select the encoding of the input. Supported values are