Closed Bug 825818 Opened 12 years ago Closed 12 years ago

Fix six -Wlogical-op-parentheses warnings in nsUTF8ToUnicode.cpp.

Categories

(Core :: Internationalization, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla20

People

(Reporter: n.nethercote, Assigned: n.nethercote)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

clang 3.2 warns: intl/uconv/src/nsUTF8ToUnicode.cpp:274:27 [-Wlogical-op-parentheses] '&&' within '||' intl/uconv/src/nsUTF8ToUnicode.cpp:274:38 [-Wlogical-op-parentheses] '&&' within '||' intl/uconv/src/nsUTF8ToUnicode.cpp:275:47 [-Wlogical-op-parentheses] '&&' within '||' intl/uconv/src/nsUTF8ToUnicode.cpp:276:27 [-Wlogical-op-parentheses] '&&' within '||' intl/uconv/src/nsUTF8ToUnicode.cpp:276:38 [-Wlogical-op-parentheses] '&&' within '||' intl/uconv/src/nsUTF8ToUnicode.cpp:277:49 [-Wlogical-op-parentheses] '&&' within '||'
This patch fixes that by adding the appropriate parentheses. I haven't changed the meaning of the code, because it looks (to my untrained eye) like it's currently correct. The patch also fixes the Emacs/vim modelines to match that requested in https://developer.mozilla.org/en-US/docs/Developer_Guide/Coding_Style, and removes trailing whitespace from one line.
Attachment #696941 - Flags: review?(VYV03354)
Comment on attachment 696941 [details] [diff] [review] Fix six -Wlogical-op-parentheses warnings in nsUTF8ToUnicode.cpp. r=me assuming this patch passed the tests.
Attachment #696941 - Flags: review?(VYV03354) → review+
Blocks: buildwarning
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla20
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: