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

 



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]

  Powered by Linux