https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66425

Ed Catmur <ed at catmur dot uk> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ed at catmur dot uk

--- Comment #34 from Ed Catmur <ed at catmur dot uk> ---
Note that a logical negation prior to cast to void is sufficient to suppress
the warning:

  int void_cast_should_not_warn() {
     (void) !foo();
     //     ^-- here
     return 0;
  }

Reply via email to