WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
124199
Fixed unused parameter warnings in WebCore
https://bugs.webkit.org/show_bug.cgi?id=124199
Summary
Fixed unused parameter warnings in WebCore
Tibor Mészáros
Reported
2013-11-12 06:00:26 PST
There should be some unused parametes, that cause build warning during EFL / EFL --minimal build in WebCore.
Attachments
Patch
(15.98 KB, patch)
2013-11-12 06:24 PST
,
Tibor Mészáros
no flags
Details
Formatted Diff
Diff
Patch v2
(13.23 KB, patch)
2013-11-12 06:31 PST
,
Tibor Mészáros
no flags
Details
Formatted Diff
Diff
Patch v3
(13.26 KB, patch)
2013-11-12 06:42 PST
,
Tibor Mészáros
no flags
Details
Formatted Diff
Diff
Patch v4
(13.26 KB, patch)
2013-11-12 06:54 PST
,
Tibor Mészáros
no flags
Details
Formatted Diff
Diff
Patch v5
(12.20 KB, patch)
2013-11-12 09:02 PST
,
Tibor Mészáros
no flags
Details
Formatted Diff
Diff
Patch v6
(12.21 KB, patch)
2013-11-12 09:56 PST
,
Tibor Mészáros
ossy
: review-
ossy
: commit-queue-
Details
Formatted Diff
Diff
Patch v7
(12.18 KB, patch)
2013-11-13 03:16 PST
,
Tibor Mészáros
no flags
Details
Formatted Diff
Diff
Show Obsolete
(6)
View All
Add attachment
proposed patch, testcase, etc.
Tibor Mészáros
Comment 1
2013-11-12 06:24:34 PST
Created
attachment 216662
[details]
Patch There were some unused parameters, that cause build warning during EFL / EFL --minimal build in WebCore, this patch will fix most of them.
Tibor Mészáros
Comment 2
2013-11-12 06:31:45 PST
Created
attachment 216665
[details]
Patch v2 Fixed the title in the patch.
WebKit Commit Bot
Comment 3
2013-11-12 06:33:15 PST
Attachment 216665
[details]
did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebCore/ChangeLog', u'Source/WebCore/css/CSSCursorImageValue.cpp', u'Source/WebCore/dom/Document.cpp', u'Source/WebCore/fileapi/ThreadableBlobRegistry.cpp', u'Source/WebCore/html/HTMLAnchorElement.cpp', u'Source/WebCore/html/parser/XSSAuditor.cpp', u'Source/WebCore/inspector/InspectorConsoleInstrumentation.h', u'Source/WebCore/loader/DocumentThreadableLoader.cpp', u'Source/WebCore/loader/cache/CachedImage.cpp', u'Source/WebCore/page/animation/ImplicitAnimation.cpp', u'Source/WebCore/page/animation/KeyframeAnimation.cpp', u'Source/WebCore/platform/graphics/WidthIterator.cpp', u'Source/WebCore/rendering/RenderView.cpp', u'Source/WebCore/rendering/style/RenderStyle.cpp', u'Source/WebCore/testing/Internals.cpp']" exit_code: 1 Source/WebCore/page/animation/ImplicitAnimation.cpp:81: Tab found; better to use spaces [whitespace/tab] [1] Source/WebCore/page/animation/ImplicitAnimation.cpp:82: Tab found; better to use spaces [whitespace/tab] [1] Source/WebCore/page/animation/ImplicitAnimation.cpp:83: Tab found; better to use spaces [whitespace/tab] [1] Source/WebCore/page/animation/ImplicitAnimation.cpp:84: Tab found; better to use spaces [whitespace/tab] [1] Source/WebCore/page/animation/KeyframeAnimation.cpp:187: Tab found; better to use spaces [whitespace/tab] [1] Source/WebCore/page/animation/KeyframeAnimation.cpp:188: When wrapping a line, only indent 4 spaces. [whitespace/indent] [3] Total errors found: 6 in 15 files If any of these errors are false positives, please file a bug against check-webkit-style.
Tibor Mészáros
Comment 4
2013-11-12 06:42:27 PST
Created
attachment 216667
[details]
Patch v3 Fixed the [whitespace/tab] errors.
Gyuyoung Kim
Comment 5
2013-11-12 06:45:43 PST
Comment on
attachment 216667
[details]
Patch v3 View in context:
https://bugs.webkit.org/attachment.cgi?id=216667&action=review
> Source/WebCore/ChangeLog:3 > + [EFL] Cleanup the build from unused parameters in WebCore
[EFL] ? This patch is for WebCore, not EFL port.
Tibor Mészáros
Comment 6
2013-11-12 06:54:58 PST
Created
attachment 216669
[details]
Patch v4 Fixed the title again.
Tibor Mészáros
Comment 7
2013-11-12 09:02:55 PST
Created
attachment 216679
[details]
Patch v5 Updated the patch to be up to date.
Tibor Mészáros
Comment 8
2013-11-12 09:56:47 PST
Created
attachment 216691
[details]
Patch v6 reupdated the patch, to be up to date.
Gyuyoung Kim
Comment 9
2013-11-12 17:27:06 PST
Comment on
attachment 216691
[details]
Patch v6 View in context:
https://bugs.webkit.org/attachment.cgi?id=216691&action=review
> Source/WebCore/loader/cache/CachedImage.cpp:278 > + UNUSED_PARAM(sizeType);
Wrong indentation.
> Source/WebCore/page/animation/ImplicitAnimation.cpp:80 > +
Unneeded line.
Csaba Osztrogonác
Comment 10
2013-11-13 02:18:23 PST
Comment on
attachment 216691
[details]
Patch v6 View in context:
https://bugs.webkit.org/attachment.cgi?id=216691&action=review
LGTM in general, but r- now due to style issues, please fix them.
> Source/WebCore/css/CSSCursorImageValue.cpp:178 > +#else > + UNUSED_PARAM(document);
wrong indentation here too
> Source/WebCore/dom/Document.cpp:4874 > +#else > + UNUSED_PARAM(isThrottled);
ditto
> Source/WebCore/loader/DocumentThreadableLoader.cpp:335 > + UNUSED_PARAM(identifier);
ditto
> Source/WebCore/loader/DocumentThreadableLoader.cpp:361 > + UNUSED_PARAM(identifier);
ditto
> Source/WebCore/rendering/style/RenderStyle.cpp:793 > + UNUSED_PARAM(other);
ditto
Tibor Mészáros
Comment 11
2013-11-13 03:16:00 PST
Created
attachment 216788
[details]
Patch v7 Fixed indentation problems.
Csaba Osztrogonác
Comment 12
2013-11-13 03:49:52 PST
Comment on
attachment 216788
[details]
Patch v7 View in context:
https://bugs.webkit.org/attachment.cgi?id=216788&action=review
LGTM, r=me. I'll fix the style issue mentioned before landing.
> Source/WebCore/platform/graphics/WidthIterator.cpp:134 > +#else > + UNUSED_PARAM(iterator); > #endif > fontData->applyTransforms(glyphBuffer->glyphs(lastGlyphCount), advances + lastGlyphCount, glyphBufferSize - lastGlyphCount, typesettingFeatures);
This code is so ugly ... :-/ Maybe we should reorder it a little bit: #if !ENABLE(SVG_FONTS) UNUSED_PARAM(iterator); #else // We need to handle transforms on SVG fonts internally, since they are rendered internally. if .... } else #endif fontdata->applyTransforms(...);
Csaba Osztrogonác
Comment 13
2013-11-13 03:57:54 PST
Landed in
https://trac.webkit.org/changeset/159188
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