This is the mail archive of the gcc-help@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]
Other format: [Raw text]

-Werror=unused-value does not give error when ignoring return value of function with attribute warn_unused_result


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 Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]