Re: [PATCH] fix some clang warnings
- From
Matthieu Moy <matthieu.moy@grenoble-inp.fr>
- Date
- Jan 16, 2013, 18:12 UTC
- Message-ID
- <vpqr4llhua3.fsf@grenoble-inp.fr>
- In-Reply-To
- <20130116175057.GB27525@sigill.intra.peff.net>
Jeff King <peff@peff.net> writes:
> It seems a little weird to me that clang defines __GNUC__, but I > assume there are good reasons for it.
The reason is essentially that clang targets compatibility with GCC (implementing the same extensions & cie), in the sense "drop in replacement that should be able to compile legacy code possibly relying on __GNUC__ and GCC extensions."
-- Matthieu Moy http://www-verimag.imag.fr/~moy/