LWN.net Logo

Quotes of the week

Quotes of the week

Posted Aug 31, 2012 13:01 UTC (Fri) by etienne (subscriber, #25256)
In reply to: Quotes of the week by cras
Parent article: Quotes of the week

> warning: ‘foo’ defined but not used [-Wunused-function]

http://gcc.gnu.org/onlinedocs/gcc/Function-Attributes.html

unused
This attribute, attached to a function, means that the function is meant to be possibly unused. GCC will not produce a warning for this function.

I did not noticed any problem adding __attribute__((unused)) to functions.


(Log in to post comments)

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds