[cmake-developers] Clang 3.5-svn emmits tautological-pointer-compare warning
Ben Boeckel
ben.boeckel at kitware.com
Sat Jun 21 22:46:33 EDT 2014
On Fri, Jun 20, 2014 at 10:02:43 +0200, Christoph Grüninger wrote:
> Find attached a patch the removes the condition that is always true.
> Maybe you want to keep the condition as an assert?
Hmm. I don't see anything in the docs which states that uname must
always have non-NULL in 'release'. Maybe clang is using extra
information from the implementation of uname (which may be a macro)?
It is under a __linux defined block, so maybe if uname was guaranteed to
be non-NULL for Linux at least, it'd be acceptable IMO.
--Ben
More information about the cmake-developers
mailing list