Closed Bug 420639 Opened 18 years ago Closed 18 years ago

C++ comments in jsarray.c

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
trivial

Tracking

()

RESOLVED FIXED

People

(Reporter: igor, Assigned: igor)

References

Details

(Keywords: assertion, testcase)

Attachments

(1 file, 1 obsolete file)

+++ This bug was initially created as a clone of Bug #418737 +++ In the patch for bug 418737 I have used C++ comments: static JSBool array_enumerate(JSContext *cx, JSObject *obj, JSIterateOp enum_op, jsval *statep, jsid *idp) { ... case JSENUMERATE_NEXT: ... // FALL THROUGH ^^^^^^^^^^^^^^^ GCC rightfully complained about it: /home/igor/m/ff/mozilla/js/src/jsarray.c:986:9: warning: C++ style comments are not allowed in ISO C90 Too bad I have not noticed the warning.
Attached patch v1 (obsolete) — Splinter Review
C-style comments rules.
Attachment #306947 - Flags: review+
Attached patch v1Splinter Review
I am not sure if a b4 approval for such patch (that fixes GCC warnings as well) is necessary.
Attachment #306948 - Flags: approval1.9b4?
Comment on attachment 306947 [details] [diff] [review] v1 this is a duplicated attachment
Attachment #306947 - Attachment is obsolete: true
Attachment #306947 - Flags: review+
Comment on attachment 306948 [details] [diff] [review] v1 Self review/approval as this is comment only change.
Attachment #306948 - Flags: review+
Attachment #306948 - Flags: approval1.9b4?
Attachment #306948 - Flags: approval1.9b4+
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Flags: in-testsuite-
Flags: in-litmus-
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: