Closed Bug 596070 Opened 15 years ago Closed 15 years ago

Fix nsDebugImpl.cpp build warnings for "missing terminating ' character"

Categories

(Core :: XPCOM, defect)

All
Windows CE
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla2.0b8

People

(Reporter: dholbert, Assigned: dholbert)

References

Details

(Whiteboard: [build_warning])

Attachments

(1 file, 1 obsolete file)

While building mozilla-central, I get this compile-spew: > xpcom/base/nsDebugImpl.cpp:405:13: warning: missing terminating ' character > xpcom/base/nsDebugImpl.cpp:509:13: warning: missing terminating ' character This is from these lines: > 405 #warning don't know how to break on this platform > 509 #warning don't know how to break on this platform http://mxr.mozilla.org/mozilla-central/source/xpcom/base/nsDebugImpl.cpp#405 The preprocessor seems to be interpreting the apostrophe in "don't" as an unmatched single-quote. If I wrap the whole warning message in double-quotes, that seems to fix the issue.
Attached patch fix: add double-quotes (obsolete) — Splinter Review
Assignee: nobody → dholbert
Status: NEW → ASSIGNED
Attachment #474898 - Flags: review?(doug.turner)
Maybe it is safer to just change: don't to do not?
OS: Linux → Windows CE
FWIW, we do have instances of |#warning "quoted message"| in our code already. But agreed, it's probably less intrusive if I avoid introducing more quotes.
Attachment #474898 - Attachment is obsolete: true
Attachment #474918 - Flags: review?(doug.turner)
Attachment #474898 - Flags: review?(doug.turner)
Attachment #474918 - Flags: review?(doug.turner) → review+
Comment on attachment 474918 [details] [diff] [review] fix: s/don't/do not/ requesting approval2.0 - trivial zero-risk change to fix two build warnings that were introduced last month.
Attachment #474918 - Flags: approval2.0?
Comment on attachment 474918 [details] [diff] [review] fix: s/don't/do not/ low risk.
Attachment #474918 - Flags: approval2.0? → approval2.0+
Whiteboard: [build_warning] → [build_warning][needs landing]
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Whiteboard: [build_warning][needs landing] → [build_warning]
Target Milestone: --- → mozilla2.0b8
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: