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

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 solution is to cast the nega

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(..