www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/03/21/16:20:02

From: Andrew Crabtree <andrewc AT typhoon DOT rose DOT hp DOT com>
Message-Id: <199703212058.AA240197912@typhoon.rose.hp.com>
Subject: Unused Attribute ?
To: djgpp AT delorie DOT com
Date: Fri, 21 Mar 1997 12:58:32 PST

Hello - 

Is there an equivalent of __attribute__ (unused) 
for labels?

I prefer to compile with -Wall -Werror, but this will
abort if it runs into any unused labels.  I can get around 
this by either using -Wno-unused or by removing the Werror, but
I would like to just tag the labels as possible unused, and still
have the compiler detect unused variabled.  I can rewrite my 
parser to conditionally but labels in as needed, but thats an extra
condition to store, test, modify, and I don't want to slow things down.

Thanks

Andrew

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019