Bug 24535 - Missing line terminator chars (;)
: Missing line terminator chars (;)
Product: WebKit
Classification: Unclassified
Component: WebCore JavaScript
: 528+ (Nightly build)
: All All
: P2 Normal
Assigned To: David Levin
Depends on:
Blocks: 27065
  Show dependency treegraph
Reported: 2009-03-11 19:05 PDT by Norbert Leser
Modified: 2009-07-14 11:42 PDT (History)
3 users (show)

See Also:

Proposed fix for bug 24535 (9.55 KB, patch)
2009-03-11 19:07 PDT, Norbert Leser
no flags Details | Formatted Diff | Diff
Proposed fix for 24535 (10.13 KB, patch)
2009-03-13 10:15 PDT, Norbert Leser
darin: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Norbert Leser 2009-03-11 19:05:03 PDT
Various statements with macro calls, including in generated files, are missing missing line terminator character (;). This is ignored by most compilers but symbian compilers fail.

Patch will follow.
Comment 1 Norbert Leser 2009-03-11 19:07:29 PDT
Created attachment 28510 [details]
Proposed fix for bug 24535
Comment 2 Mark Rowe (bdash) 2009-03-11 19:52:17 PDT
These macros expand to code that already include the trailing semicolons.  Why is this change needed?
Comment 3 Alexey Proskuryakov 2009-03-12 00:02:24 PDT
If we do this, we should arguably remove semicolons from macro definitions.
Comment 4 Norbert Leser 2009-03-12 08:02:07 PDT
(In reply to comment #3)
> If we do this, we should arguably remove semicolons from macro definitions.

I agree with your proposal - if it's just for the sake of consistency and cleanliness of the code.
In fact, as far as I can tell, the COMPILE_ASSERT macro in Assert.h is the only one that has an implicit ";"
It is common practice anyway to not have a trailing ";" in #define's

I'd be glad to update the patch with this change in Assert.h, if there's an agreement.
Comment 5 Alexey Proskuryakov 2009-03-12 08:26:35 PDT
I think that would be nice as a cleanup patch, yes. It's extremely surprising that any compiler would choke on the current code though.
Comment 6 Norbert Leser 2009-03-13 10:15:59 PDT
Created attachment 28580 [details]
Proposed fix for 24535 

I added Assertions.h (removal of trailing ";" from COMPILE_ASSERT macro definition) to this updated patch, as discussed.
Otherwise, unchanged to initial patch.
Comment 7 Darin Adler 2009-03-13 10:18:23 PDT
Comment on attachment 28580 [details]
Proposed fix for 24535 

Seems OK, r=me
Comment 8 David Levin 2009-03-20 15:28:22 PDT
Assigned to levin for landing.

Please add a link to the bug in the ChangeLog in the future and there is no need to leave this "WARNING: NO TEST CASES ADDED OR CHANGED" in the ChangeLog.
Comment 9 David Levin 2009-03-20 16:56:37 PDT
Committed as r41879.

Comment 10 Eric Seidel 2009-05-04 01:58:16 PDT
Comment on attachment 28510 [details]
Proposed fix for bug 24535

A later version of this was reviewed already.  Clearing review flag to remove from queue.