[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [sharutils-4.11.1] Compilation warnings
From: |
Paul Eggert |
Subject: |
Re: [sharutils-4.11.1] Compilation warnings |
Date: |
Thu, 06 Dec 2012 16:01:56 -0800 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/17.0 Thunderbird/17.0 |
On 12/06/12 14:02, Bruce Korb wrote:
> If the compiler is going to complain about
> an unused value when that value is explicitly cast to void, then it is a
> compiler bug.
> They probably don't think so, but I think it is inexcusably stupid.
You're not the only one. This problem is common enough
that we have a gnulib module that solves it. With
gnulib you can use the ignore-value module and write this:
#include <ignore-value.h>
...
ignore_value (system (fil_name));
- [sharutils-4.11.1] Compilation warnings, Petr Písař, 2012/12/04
- [PATCH 1/2] Fix strict-aliasing warning in MD5, Petr Písař, 2012/12/04
- [PATCH 2/2] Fix unused wariable warning, Petr Písař, 2012/12/04
- Re: [sharutils-4.11.1] Compilation warnings, Bruce Korb, 2012/12/05
- Re: [sharutils-4.11.1] Compilation warnings, Petr Pisar, 2012/12/06
- Re: [sharutils-4.11.1] Compilation warnings, Bruce Korb, 2012/12/06
- Re: [sharutils-4.11.1] Compilation warnings,
Paul Eggert <=
- Re: [sharutils-4.11.1] Compilation warnings, Eric Blake, 2012/12/06
- Re: [sharutils-4.11.1] Compilation warnings, Bruce Korb, 2012/12/06
- Re: [sharutils-4.11.1] Compilation warnings, Petr Pisar, 2012/12/07
- Re: [sharutils-4.11.1] Compilation warnings, Eric Blake, 2012/12/07