Subject: Re: [Boost-bugs] [Boost C++ Libraries] #5145: Fixed warning: use of logical && with constant operand; switch to bitwise & or remove constant [-Wconstant-logical-operand]
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-02-14 16:41:49
#5145: Fixed warning: use of logical && with constant operand; switch to bitwise &
or remove constant [-Wconstant-logical-operand]
--------------------------------------+-------------------------------------
Reporter: vvavrychuk@⦠| Owner: atompkins
Type: Patches | Status: new
Milestone: To Be Determined | Component: uuid
Version: Boost Development Trunk | Severity: Problem
Resolution: | Keywords:
--------------------------------------+-------------------------------------
Comment (by marshall):
Applying this patch causes two of the tests to fail (not surprisingly,
since it changes the string representation when outputting as wide chars):
{{{
testing.capture-output
../../../bin.v2/libs/uuid/test/test_name_generator.test/clang-
darwin-4.2.1/debug/test_name_generator.run
====== BEGIN OUTPUT ======
test_name_generator.cpp(32): test 'u == wcorrect' failed in function 'int
main(int, char **)': 'c315270b-a466-5872-aca4-9626cec0f4be' !=
'b9506613-2c04-512d-b8fe-bf8d0ba1b271'
test_name_generator.cpp(40): test 'u == wcorrect' failed in function 'int
main(int, char **)': 'c315270b-a466-5872-aca4-9626cec0f4be' !=
'b9506613-2c04-512d-b8fe-bf8d0ba1b271'
2 errors detected.
EXIT STATUS: 1
====== END OUTPUT ======
}}}
The test needs to be adjusted, too. ;-)
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/5145#comment:2> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:05 UTC