Modify

Opened 6 years ago

Closed 6 years ago

#5145 closed Patches (fixed)

Fixed warning: use of logical && with constant operand; switch to bitwise & or remove constant [-Wconstant-logical-operand]

Reported by: vvavrychuk@… Owned by: Andy Tompkins
Milestone: To Be Determined Component: uuid
Version: Boost 1.47.0 Severity: Problem
Keywords: Cc:

Description

Fixed warning: use of logical && with constant operand; switch to bitwise & or remove constant [-Wconstant-logical-operand]

Attachments (1)

0002-Fixed-warning-use-of-logical-with-constant-operand-s.patch (1.1 KB) - added by anonymous 6 years ago.

Download all attachments as: .zip

Change History (5)

comment:1 Changed 6 years ago by Steven Watanabe

Owner: changed from Dave Abrahams to Andy Tompkins

comment:2 Changed 6 years ago by Marshall Clow

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. ;-)

comment:3 Changed 6 years ago by Marshall Clow

(In [68866]) Fix bug in wide output; Refs #5145

comment:4 Changed 6 years ago by Andy Tompkins

Resolution: fixed
Status: newclosed
Version: Boost Development TrunkBoost 1.47.0

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Andy Tompkins.
The resolution will be deleted.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.