WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
161252
REGRESSION(
r204028
): Fix unused-but-set-variable warning in generated JSNavigator.cpp
https://bugs.webkit.org/show_bug.cgi?id=161252
Summary
REGRESSION(r204028): Fix unused-but-set-variable warning in generated JSNavig...
Csaba Osztrogonác
Reported
2016-08-26 09:20:50 PDT
DerivedSources/WebCore/JSNavigator.cpp: In function 'JSC::EncodedJSValue WebCore::jsNavigatorPrototypeFunctionVibrate(JSC::ExecState*)': DerivedSources/WebCore/JSNavigator.cpp:977:17: error: variable 'distinguishingArg' set but not used [-Werror=unused-but-set-variable] cc1plus: all warnings being treated as errors ------------------------------------------------------------------------------------------------------------------- EncodedJSValue JSC_HOST_CALL jsNavigatorPrototypeFunctionVibrate(ExecState* state) { size_t argsCount = std::min<size_t>(1, state->argumentCount()); if (argsCount == 1) { JSValue distinguishingArg = state->uncheckedArgument(0); #if ENABLE(VIBRATION) if (hasIteratorMethod(*state, distinguishingArg)) return jsNavigatorPrototypeFunctionVibrate1(state); #endif #if ENABLE(VIBRATION) if (distinguishingArg.isNumber()) return jsNavigatorPrototypeFunctionVibrate2(state); #endif #if ENABLE(VIBRATION) return jsNavigatorPrototypeFunctionVibrate2(state); #endif } return argsCount < 1 ? throwVMError(state, createNotEnoughArgumentsError(state)) : throwVMTypeError(state); } -------------------------------------------------------------------------------------------------------------------
Attachments
Patch
(13.42 KB, patch)
2016-08-26 10:28 PDT
,
Chris Dumez
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Csaba Osztrogonác
Comment 1
2016-08-26 09:27:47 PDT
It seems it is a regression caused by
https://trac.webkit.org/changeset/204028
Chris Dumez
Comment 2
2016-08-26 10:28:34 PDT
Created
attachment 287118
[details]
Patch
WebKit Commit Bot
Comment 3
2016-08-26 14:36:08 PDT
Comment on
attachment 287118
[details]
Patch Clearing flags on attachment: 287118 Committed
r205048
: <
http://trac.webkit.org/changeset/205048
>
WebKit Commit Bot
Comment 4
2016-08-26 14:36:25 PDT
All reviewed patches have been landed. Closing bug.
Chris Dumez
Comment 5
2016-08-26 17:17:51 PDT
Follow-up fix in <
http://trac.webkit.org/changeset/205061
>.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug