Re: [sharutils-4.11.1] Compilation warnings

Paul Eggert <[email protected]>
Newsgroups gmane.comp.gnu.utils.bugs
Message-ID <[email protected]>
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));
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.