------- Comment #6 from bonzini at gnu dot org 2008-10-17 09:14 -------
It seems bad that *explicit* casts to void cannot silence the warning. This is
a problem for projects using -Werror and using (void) with due diligence
(including GNU coreutils).
--
bonzini at gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Known to fail| |4.1.2 4.2.4 4.3.2 4.4.0
Known to work| |4.0.3
Summary|__attribute__(( |[4.1/4.2/4.3/4.4 Regression]
|warn_unused_result )) warns |casts to void do not silence
|when it shouldn't, doesn't |-Wunused warnings for the
|warn when it should |case of __attribute__((
| |warn_unused_result ))
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35579