Re: Compiler warnings on Debian

2022-01-05 Thread Wietse Venema
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

Re: Compiler warnings on Debian

2022-01-05 Thread 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 GCC does not respect that, see [2]. > One solut

Compiler warnings on Debian

2022-01-05 Thread 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 solution is to cast the negated result, i.e. `(void)! foo

Re: compiler warnings

2014-07-25 Thread Wietse Venema
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

compiler warnings

2014-07-25 Thread li...@rhsoft.net
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