diff options
author | Tor Lillqvist <tml@iki.fi> | 2012-11-26 18:20:10 +0200 |
---|---|---|
committer | Tor Lillqvist <tml@iki.fi> | 2012-11-26 18:23:32 +0200 |
commit | 185fe1de1f437ec2a60cbab3f30bd505e9d14d36 (patch) | |
tree | ec5039aecd37f941473ea43d022f00dafaea03a0 /boost | |
parent | 65f82ca62922e2c487ba72b6d67ea7e3a03f8ebc (diff) |
WaE: use of logical '&&' with constant operand
Thanks, Clang. The code was indeed (obviously) wrong.
Is fixed in upstream boost:
https://svn.boost.org/trac/boost/changeset/72270
https://svn.boost.org/trac/boost/ticket/5145
Change-Id: I5efbb60a8518e387785f2fb65cd821f1938534cc
Diffstat (limited to 'boost')
-rw-r--r-- | boost/boost_1_44_0-clang-warnings.patch | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/boost/boost_1_44_0-clang-warnings.patch b/boost/boost_1_44_0-clang-warnings.patch index df0883c58909..f48910e91074 100644 --- a/boost/boost_1_44_0-clang-warnings.patch +++ b/boost/boost_1_44_0-clang-warnings.patch @@ -80,3 +80,21 @@ template<class Token, class Value> static void plus_equal(Token &t, const Value &v) { t += v; +--- misc/boost_1_44_0/boost/uuid/name_generator.hpp ++++ misc/build/boost_1_44_0/boost/uuid/name_generator.hpp +@@ -72,10 +72,10 @@ + + for (size_t i=0; i<count; i++) { + uint32_t c = characters[i]; +- sha.process_byte( (c >> 0) && 0xFF ); +- sha.process_byte( (c >> 8) && 0xFF ); +- sha.process_byte( (c >> 16) && 0xFF ); +- sha.process_byte( (c >> 24) && 0xFF ); ++ sha.process_byte( (c >> 0) & 0xFF ); ++ sha.process_byte( (c >> 8) & 0xFF ); ++ sha.process_byte( (c >> 16) & 0xFF ); ++ sha.process_byte( (c >> 24) & 0xFF ); + } + } + + |