Closed
Bug 790123
Opened 13 years ago
Closed 13 years ago
CSS2PropertiesBinding.h:141:1: warning: no newline at end of file [-pedantic,-Wnewline-eof]
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
RESOLVED
FIXED
mozilla18
People
(Reporter: MatsPalmgren_bugz, Assigned: bzbarsky)
References
Details
Attachments
(1 file, 1 obsolete file)
1.28 KB,
patch
|
MatsPalmgren_bugz
:
review+
|
Details | Diff | Splinter Review |
clang++ complains:
../../../../dist/include/mozilla/dom/CSS2PropertiesBinding.h:141:1: warning: no newline at end of file [-pedantic,-Wnewline-eof]
clang version 3.1 (trunk 152341)
Reporter | ||
Updated•13 years ago
|
Summary: SS2PropertiesBinding.h:141:1: warning: no newline at end of file [-pedantic,-Wnewline-eof] → CSS2PropertiesBinding.h:141:1: warning: no newline at end of file [-pedantic,-Wnewline-eof]
![]() |
Assignee | |
Comment 1•13 years ago
|
||
This applies to all the generated binding headers, right?
The problem is that we run the overall text through this:
def stripTrailingWhitespace(text):
lines = text.splitlines()
for i in range(len(lines)):
lines[i] = lines[i].rstrip()
return '\n'.join(lines)
Patch coming up.
![]() |
Assignee | |
Comment 2•13 years ago
|
||
Attachment #660075 -
Flags: review?(matspal)
Attachment #660075 -
Flags: review?(matspal) → review+
Reporter | ||
Comment 4•13 years ago
|
||
Comment on attachment 660075 [details] [diff] [review]
Make sure to not lose a single trailing newline in stripTrailingWhitespace.
Seems like this is bound to happen sooner or later:
>>> stripTrailingWhitespace('')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "<stdin>", line 2, in stripTrailingWhitespace
IndexError: string index out of range
Attachment #660075 -
Flags: review-
![]() |
Assignee | |
Comment 5•13 years ago
|
||
Attachment #660139 -
Flags: review?(matspal)
![]() |
Assignee | |
Updated•13 years ago
|
Attachment #660075 -
Attachment is obsolete: true
Reporter | ||
Comment 6•13 years ago
|
||
Comment on attachment 660139 [details] [diff] [review]
OK, how about something like this, then?
Looks good, thanks.
Attachment #660139 -
Flags: review?(matspal) → review+
![]() |
Assignee | |
Comment 7•13 years ago
|
||
Assignee: nobody → bzbarsky
Flags: in-testsuite-
Target Milestone: --- → mozilla18
Comment 8•13 years ago
|
||
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Updated•6 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•