[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: attribute warn_unused_result
From: |
Eli Zaretskii |
Subject: |
Re: attribute warn_unused_result |
Date: |
Fri, 04 Feb 2011 10:41:32 +0200 |
> Date: Thu, 03 Feb 2011 13:40:21 -0800
> From: Paul Eggert <address@hidden>
> CC: Emacs-Devel devel <address@hidden>, Eli Zaretskii <address@hidden>
>
> On 02/03/11 12:42, Chad Brown wrote:
>
> > ..and it broke the W32 and nextstep builds (at least) again.
>
> Sorry, I forgot to add the new file lib/ignore-value.h.
> That should be fixed now.
>
> On 02/03/11 13:16, Eli Zaretskii wrote:
>
> > And is butt-ugly, IMO.
>
> I don't like ignore-value either. I'd rather that we simply
> tell GCC never to generate those bogus warnings anywhere.
> However, as I understand it, that's not so easily done.
The -Wno-unused-result compiler options looks easy to me, and is IMO
cleaner than using ignore-value.h. Heck, even the corresponding
pragma in the affected source files looks cleaner.
The only advantage of ignore-value.h is that it will work with
compilers other than GCC (if some of them also insist on this
warning).
- attribute warn_unused_result, Eli Zaretskii, 2011/02/03
- Re: attribute warn_unused_result, Stefan Monnier, 2011/02/03
- Re: attribute warn_unused_result, Paul Eggert, 2011/02/03
- Re: attribute warn_unused_result, Chad Brown, 2011/02/03
- Re: attribute warn_unused_result, Eli Zaretskii, 2011/02/03
- Re: attribute warn_unused_result, Paul Eggert, 2011/02/03
- Re: attribute warn_unused_result, Lennart Borgman, 2011/02/03
- Re: attribute warn_unused_result, Eli Zaretskii, 2011/02/04
- Re: attribute warn_unused_result, Chong Yidong, 2011/02/05
- Re: attribute warn_unused_result, Paul Eggert, 2011/02/03
- Re: attribute warn_unused_result,
Eli Zaretskii <=
- Re: attribute warn_unused_result, Paul Eggert, 2011/02/04
- Re: attribute warn_unused_result, Stefan Monnier, 2011/02/04
- Re: attribute warn_unused_result, Eli Zaretskii, 2011/02/05
- Re: attribute warn_unused_result, Lennart Borgman, 2011/02/03
- Re: attribute warn_unused_result, Stefan Monnier, 2011/02/04
- Re: attribute warn_unused_result, Lennart Borgman, 2011/02/04
- Re: attribute warn_unused_result, Eli Zaretskii, 2011/02/05
- Re: attribute warn_unused_result, Eli Zaretskii, 2011/02/05
- Re: attribute warn_unused_result, Andy Moreton, 2011/02/03
- Re: attribute warn_unused_result, Paul Eggert, 2011/02/03