bug-gnu-utils
[Top][All Lists]
Advanced

[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));




reply via email to

[Prev in Thread] Current Thread [Next in Thread]