This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Warning policy?
- To: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- Subject: Re: Warning policy?
- From: David Edelsohn <dje at watson dot ibm dot com>
- Date: Fri, 01 Jan 1999 20:16:31 -0500
- Cc: jbuck at Synopsys dot COM, chip at perlsupport dot com, egcs-patches at cygnus dot com, egcs at cygnus dot com, pfeifer at dbai dot tuwien dot ac dot at, schwab at issan dot informatik dot uni-dortmund dot de
>>>>> "Kaveh R Ghazi" writes:
Kaveh> Fri Jan 1 19:11:54 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
Kaveh> * c-common.c (decl_attributes): Allow applying attribute `unused'
Kaveh> on a LABEL_DECL.
Kaveh> * c-parse.in (label): Parse attributes after a label, and call
Kaveh> `decl_attributes' to handle them.
Kaveh> * gansidecl.h (ATTRIBUTE_UNUSED_LABEL): Define.
Kaveh> * genrecog.c (OUTPUT_LABEL, write_tree_1, write_tree): When
Kaveh> generating labels, mark them with ATTRIBUTE_UNUSED_LABEL.
Kaveh> * invoke.texi: Note that labels can be marked `unused'.
I, personally, am much happier marking labels as possibly unused
than creating artificial uses. I think this or something like it is a
much more correct solution. Removing warnings is suppose to IMPROVE the
quality of the code.
David