From 736b02fdfa3d7c93a3693e2fa41acf6d3d65df8c Mon Sep 17 00:00:00 2001 From: "Kaveh R. Ghazi" Date: Mon, 4 Jan 1999 07:48:37 +0000 Subject: 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 --- gcc/invoke.texi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc/invoke.texi') 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 -- cgit v1.1