diff options
author | Kaveh R. Ghazi <ghazi@caip.rutgers.edu> | 1999-01-04 07:48:37 +0000 |
---|---|---|
committer | Kaveh Ghazi <ghazi@gcc.gnu.org> | 1999-01-04 07:48:37 +0000 |
commit | 736b02fdfa3d7c93a3693e2fa41acf6d3d65df8c (patch) | |
tree | e6dcbf0a389b511b9751f2e3fbcbf9af76269446 /gcc/invoke.texi | |
parent | fbc7f4a22d02ba59c589d13a50a7866d333e5e22 (diff) | |
download | gcc-736b02fdfa3d7c93a3693e2fa41acf6d3d65df8c.zip gcc-736b02fdfa3d7c93a3693e2fa41acf6d3d65df8c.tar.gz gcc-736b02fdfa3d7c93a3693e2fa41acf6d3d65df8c.tar.bz2 |
c-common.c (decl_attributes): Allow applying attribute `unused' on a LABEL_DECL.
* c-common.c (decl_attributes): Allow applying attribute `unused'
on a LABEL_DECL.
* c-parse.in (label): Parse attributes after a label, and call
`decl_attributes' to handle them.
* gansidecl.h (ATTRIBUTE_UNUSED_LABEL): Define.
* genrecog.c (OUTPUT_LABEL, write_tree_1, write_tree): When
generating labels, mark them with ATTRIBUTE_UNUSED_LABEL.
* invoke.texi: Note that labels can be marked `unused'.
From-SVN: r24478
Diffstat (limited to 'gcc/invoke.texi')
-rw-r--r-- | gcc/invoke.texi | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/invoke.texi b/gcc/invoke.texi index 2cf6252..cdf1a3b 100644 --- a/gcc/invoke.texi +++ b/gcc/invoke.texi @@ -1340,7 +1340,7 @@ In order to get a warning about an unused function parameter, you must specify both @samp{-W} and @samp{-Wunused}. To suppress this warning for an expression, simply cast it to void. For -unused variables and parameters, use the @samp{unused} attribute +unused variables, parameters and labels, use the @samp{unused} attribute (@pxref{Variable Attributes}). @item -Wuninitialized |