This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Warning policy?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]