-Werror=unused-value does not give error when ignoring return value of function with attribute warn_unused_result
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- To: MSX to GCC <gcc-help@xxxxxxxxxxx>
- Subject: -Werror=unused-value does not give error when ignoring return value of function with attribute warn_unused_result
- From: Erik <esigra@xxxxxxxxx>
- Date: Thu, 02 Jul 2009 00:39:02 +0200
- User-agent: Thunderbird 2.0.0.21 (X11/20090430)
I need to get an error when the return value of a function with
attribute warn_unused_result is ignored. I added
-Werror=unused-function, -Werror=unused-label and -Werror=unused-value
but nothing seems to work.
[Index of Archives]
[Linux C Programming]
[Linux Kernel]
[eCos]
[Fedora Development]
[Fedora Announce]
[Autoconf]
[The DWARVES Debugging Tools]
[Yosemite Campsites]
[Yosemite News]
[Linux GCC]