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]

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


Erik <esigra@gmail.com> writes:

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

Unfortunately there is no way to specifically control this warning.
This is a bug.

Ian


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]