GNU bug report logs -
#15970
[Bug-tar] Crash in gettext() after fork() on Mac OS X
Previous Next
Reported by: Paul Eggert <eggert <at> cs.ucla.edu>
Date: Mon, 25 Nov 2013 00:11:02 UTC
Severity: normal
Done: Pádraig Brady <P <at> draigBrady.com>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
On 11/27/2013 10:05 AM, Joerg Schilling wrote:
> If you like to stay in an environment that is based on GCC only, you may use
> ignore_value(). If you however like to write portable code, you cannot expect
> something like ignore_value() to be available.
False. Gnulib already takes care of that; it #defines ignore_value(e)
to ((void)(e)) on all non-gcc compilers. In other words, ignore_value()
is portable to ANY standards-compliant compiler, and ALSO has the
benefit of shutting up warnings on as many compilers as gnulib knows how
to test.
> Given the fact that other
> compilers honor the (void) cast,
GCC honors (void) casting - but that doesn't shut up the warning. Just
because the standards require (void)expression to compile (and gcc
compiles it just fine) doesn't mean that the compiler can't warn about
it being suspicious.
> it seems that gcc is trying to be different in
> a way that just causes pain but that does not give extra value.
Maybe, but that cat is already out of the bag, and cross-posting to
these lists is not the effective forum to do anything about it.
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
[signature.asc (application/pgp-signature, attachment)]
This bug report was last modified 11 years and 179 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.