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

 



Erik <esigra@xxxxxxxxx> 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 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