Closed
Bug 550962
Opened 14 years ago
Closed 14 years ago
add coverity hint in CSSParserImpl to ignore return values from ParseEnum/ExpectSymbol
Categories
(Core :: CSS Parsing and Computation, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: timeless, Assigned: timeless)
References
(Blocks 1 open bug)
Details
(Keywords: coverity)
Attachments
(1 file, 3 obsolete files)
1.36 KB,
patch
|
timeless
:
review+
|
Details | Diff | Splinter Review |
zwol indicates that these are intentional but that he'd be ok w/ adding (void) for them. 6815 CSSParserImpl::ParseBorderImage() 6884 if (ParseEnum(horizontalKeyword, nsCSSProps::kBorderImageKTable)) { 6885 ParseEnum(verticalKeyword, nsCSSProps::kBorderImageKTable); 7134 CSSParserImpl::DoParseRect(nsCSSRect& aRect) 7171 if (3 != side) { 7172 // skip optional commas between elements 7173 ExpectSymbol(',', PR_TRUE);
Comment 1•14 years ago
|
||
dbaron, do you have an opinion?
timeless-mbp:mozilla-central timeless$ grep '(void)' layout/style/nsComputedDOMStyle.cpp (void)GetQueryablePropertyMap(aLength); So, this matches that style.
Comment 3•14 years ago
|
||
Comment on attachment 431164 [details] [diff] [review] proposal This changes ParseBorderImage and DoParseRect. Weren't you going to change ParseDasharray? (FWIW, this appears to be a correct change in DoParseRect as well.)
Attachment #431164 -
Attachment is obsolete: true
Attachment #431207 -
Flags: review?(zweinberg)
Attachment #431164 -
Flags: review?(zweinberg)
Attachment #431207 -
Attachment is obsolete: true
Attachment #431210 -
Flags: review?(zweinberg)
Attachment #431207 -
Flags: review?(zweinberg)
Comment 6•14 years ago
|
||
Comment on attachment 431210 [details] [diff] [review] proposal Looks good. >@@ -9084,7 +9084,7 @@ CSSParserImpl::ParseDasharray() > break; > > // skip optional commas between elements >- ExpectSymbol(',', PR_TRUE); >+ (void)ExpectSymbol(',', PR_TRUE); > > if (!ParseVariant(value, > VARIANT_LENGTH | VARIANT_PERCENT | VARIANT_NUMBER, Would you mind fixing the indentation of the comment here, as long as you're in the file? (It should be aligned with the code, not one space further in.)
Attachment #431210 -
Flags: review?(zweinberg) → review+
Comment on attachment 431210 [details] [diff] [review] proposal looks ok to me
Attachment #431210 -
Attachment is obsolete: true
Attachment #431308 -
Flags: review+
http://hg.mozilla.org/mozilla-central/rev/e2eca12381c4
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Updated•6 years ago
|
Blocks: coverity-analysis
You need to log in
before you can comment on or make changes to this bug.
Description
•