Re: [sharutils-4.11.1] Compilation warnings

2012-12-07 Thread Paul Eggert
On 12/06/2012 08:53 PM, Bruce Korb wrote: > can GCC decide that the result of (x) is not really used and still complain? GCC is allowed to generate whatever warnings it likes. It can warn whenever you have a program that uses the letter 'a', say. But it is required to generate code that does what

Re: [sharutils-4.11.1] Compilation warnings

2012-12-06 Thread Bruce Korb
On 12/06/12 16:01, Paul Eggert wrote: > 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 (system (fil_name)); # define ignore_value(x) (({ _