Warning policy?

David Edelsohn dje@watson.ibm.com
Sun Jan 31 23:58:00 GMT 1999

>>>>> "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.


More information about the Gcc mailing list