Closed
Bug 42636
Opened 26 years ago
Closed 26 years ago
warnings for unwanted ';' on Macintosh builds
Categories
(Core :: Internationalization, defect, P3)
Tracking
()
VERIFIED
FIXED
M18
People
(Reporter: Brade, Assigned: cata)
Details
on the Macintosh tinderbox Warning page, I see these warnings which could be
fixed very easily:
Possible unwanted ';'
intl/uconv/src/nsCharsetMenu.cpp:933
intl/uconv/src/nsCharsetMenu.cpp:958
Line 933 could be fixed by simply adding the curly braces like this:
for (; (*q != ',') && (*q != ' ') && (*q != 0); q++) {;}
or it could be fixed by making it two lines:
for (; (*q != ',') && (*q != ' ') && (*q != 0); q++)
;
Line 958 (for (; (*q == ',') || (*q == ' '); q++);) can be fixed either way.
Either way, the warnings will go away on Macintosh and it will be clearer to
others looking at the code that you intended to have an empty loop.
Comment 1•26 years ago
|
||
cata- I think I mention this to you. I don't think this is nsbeta2 but you
should use common C++ coding style and avoid this kind of issue. Thanks.
Fixed.
Status: ASSIGNED → RESOLVED
Closed: 26 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•