Wietse Venema:
> Christian G?ttsche:
> > While building postfix for Debian a couple of compiler warnings show
> > up, all caused by the warning `-Wunused-result`[1].
> >
> > Two of them are caused by attempts to silence compilers via a
> > void-cast, but
Christian G?ttsche:
> While building postfix for Debian a couple of compiler warnings show
> up, all caused by the warning `-Wunused-result`[1].
>
> Two of them are caused by attempts to silence compilers via a
> void-cast, but GCC does not respect that, see [2].
> One solut
While building postfix for Debian a couple of compiler warnings show
up, all caused by the warning `-Wunused-result`[1].
Two of them are caused by attempts to silence compilers via a
void-cast, but GCC does not respect that, see [2].
One solution is to cast the negated result, i.e. `(void)! foo
li...@rhsoft.net:
> i am about enable compiler warnings for software we are
> building from source and try to report things upstream
Do not turn on -Wunused-result.
Wietse
>
> debug_process.c:61:11: warning: ignoring return value of 'system', decl
i am about enable compiler warnings for software we are
building from source and try to report things upstream
___
debug_process.c:61:11: warning: ignoring return value of 'system', declared
with attribute warn_unused_result