As a security precaution, we have turned on the setting "Require API key authentication for API requests" for everyone. If this has broken something, please contact
Last Comment Bug 685234 - GCC 4.6 build warning: "jsparse.cpp:8457:16: warning: variable 'afterComma' set but not used [-Wunused-but-set-variable]"
: GCC 4.6 build warning: "jsparse.cpp:8457:16: warning: variable 'afterComma' s...
Product: Core
Classification: Components
Component: JavaScript Engine (show other bugs)
: Trunk
: x86_64 Linux
: -- normal (vote)
: mozilla9
Assigned To: Daniel Holbert [:dholbert]
: Jason Orendorff [:jorendorff]
Depends on:
Blocks: buildwarning 508637
  Show dependency treegraph
Reported: 2011-09-07 11:04 PDT by Daniel Holbert [:dholbert]
Modified: 2011-09-08 10:27 PDT (History)
1 user (show)
See Also:
Crash Signature:
QA Whiteboard:
Iteration: ---
Points: ---
Has Regression Range: ---
Has STR: ---

fix: remove unused variable (1.87 KB, patch)
2011-09-07 11:08 PDT, Daniel Holbert [:dholbert]
jimb: review+
Details | Diff | Splinter Review

Description User image Daniel Holbert [:dholbert] 2011-09-07 11:04:49 PDT
Filing bug on this GCC 4.6 build warning:
js/src/jsparse.cpp: In member function 'JSParseNode* js::Parser::primaryExpr(js::TokenKind, JSBool)':

js/src/jsparse.cpp:8457:16: warning: variable 'afterComma' set but not used [-Wunused-but-set-variable]

A MXR search of old CVS source tree shows that in this variable was originally used once:
line 5491 -- JSBool afterComma;
line 5507 -- afterComma = JS_FALSE;
line 5559 -- if (afterComma &&         <------------ (here's the only usage)
line 5628 -- afterComma = JS_TRUE;

That usage was deleted in this cset for Bug 508637:

Looks like this variable can just go away now.
Comment 1 User image Daniel Holbert [:dholbert] 2011-09-07 11:08:26 PDT
Created attachment 558883 [details] [diff] [review]
fix: remove unused variable
Comment 2 User image Daniel Holbert [:dholbert] 2011-09-07 11:42:15 PDT

Note You need to log in before you can comment on or make changes to this bug.