[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: attribute warn_unused_result
From: |
Stefan Monnier |
Subject: |
Re: attribute warn_unused_result |
Date: |
Fri, 04 Feb 2011 16:14:03 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) |
> impossible to tell the compiler not to emit this warning by the
> "usual" C technique of using a cast.
Looks like a bug in gcc. I'd be surprised if they accept this
qualification, but really what's the point of emitting a warning when
the user explicitly put a cast to void?
> Btw, isn't it ironic that gnulib, a GNU project, and all other GNU
> projects that use gnulib, need to jump through the hoops to work
> around misfeatures in glibc, one of the most important and core GNU
> projects?
I don't see how/why you'd consider it a misfeature of glibc.
The warning comes from gcc, AFAICT, and is generally a good one, it's
just that gcc should understand the standard way in C to say that you
want to discard a value.
Stefan
- Re: attribute warn_unused_result, (continued)
- Re: attribute warn_unused_result, Paul Eggert, 2011/02/04
- Re: attribute warn_unused_result, Eli Zaretskii, 2011/02/05
- Message not available
- Re: attribute warn_unused_result, Paul Eggert, 2011/02/05
- Re: attribute warn_unused_result, Eli Zaretskii, 2011/02/05
- Re: attribute warn_unused_result, Paul Eggert, 2011/02/06
- Re: attribute warn_unused_result, Eli Zaretskii, 2011/02/06
- Re: attribute warn_unused_result, Paul Eggert, 2011/02/06
- Re: attribute warn_unused_result, Eli Zaretskii, 2011/02/06
- Re: attribute warn_unused_result, Paul Eggert, 2011/02/06
- Re: attribute warn_unused_result, Eli Zaretskii, 2011/02/06
- Re: attribute warn_unused_result,
Stefan Monnier <=
- Re: attribute warn_unused_result, Eli Zaretskii, 2011/02/05
- Re: attribute warn_unused_result, Stefan Monnier, 2011/02/05