Closed
Bug 596070
Opened 15 years ago
Closed 15 years ago
Fix nsDebugImpl.cpp build warnings for "missing terminating ' character"
Categories
(Core :: XPCOM, defect)
Tracking
()
RESOLVED
FIXED
mozilla2.0b8
People
(Reporter: dholbert, Assigned: dholbert)
References
Details
(Whiteboard: [build_warning])
Attachments
(1 file, 1 obsolete file)
|
1.27 KB,
patch
|
dougt
:
review+
dougt
:
approval2.0+
|
Details | Diff | Splinter Review |
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.
| Assignee | ||
Comment 1•15 years ago
|
||
| Assignee | ||
Comment 3•15 years ago
|
||
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.
| Assignee | ||
Comment 4•15 years ago
|
||
Attachment #474898 -
Attachment is obsolete: true
Attachment #474918 -
Flags: review?(doug.turner)
Attachment #474898 -
Flags: review?(doug.turner)
Updated•15 years ago
|
Attachment #474918 -
Flags: review?(doug.turner) → review+
| Assignee | ||
Comment 5•15 years ago
|
||
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 6•15 years ago
|
||
Comment on attachment 474918 [details] [diff] [review]
fix: s/don't/do not/
low risk.
Attachment #474918 -
Flags: approval2.0? → approval2.0+
| Assignee | ||
Updated•15 years ago
|
Whiteboard: [build_warning] → [build_warning][needs landing]
| Assignee | ||
Comment 7•15 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Whiteboard: [build_warning][needs landing] → [build_warning]
| Assignee | ||
Updated•15 years ago
|
Target Milestone: --- → mozilla2.0b8
You need to log in
before you can comment on or make changes to this bug.
Description
•