Bug 29018 - [Qt] Fix unused variable warnings
Summary: [Qt] Fix unused variable warnings
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Platform (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC All
: P2 Minor
Assignee: Nobody
URL:
Keywords: Qt
Depends on:
Blocks:
 
Reported: 2009-09-07 13:02 PDT by Laszlo Gombos
Modified: 2009-09-08 10:37 PDT (History)
1 user (show)

See Also:


Attachments
proposed patch. (5.08 KB, patch)
2009-09-07 13:15 PDT, Laszlo Gombos
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Laszlo Gombos 2009-09-07 13:02:54 PDT
The significance of this work is to make a step towards enforcing the same code quality measures as other WebKit ports (most notably the mac port) so that contributors focusing on a specific WebKit ports are less likely break other ports because of the difference in quality requirements.

List of gcc warnings (with elevated warning level) - these warnings are not present in the port independent WebKit code:

WebCore/history/qt/HistoryItemQt.cpp:48: warning: unused variable 'loadFormdata'
WebCore/platform/graphics/qt/ImageBufferQt.cpp:241: warning: unused variable 'basex'
WebCore/platform/qt/RenderThemeQt.cpp:575: warning: unused variable 'appearance'
WebKit/qt/Api/qwebpage.cpp:829: warning: unused variable 'fontHeight'
WebKit/qt/Api/qwebpage.cpp:817: warning: unused variable 'editor'
WebKit/qt/WebCoreSupport/FrameLoaderClientQt.cpp:959: warning: unused variable 'page'
WebKit/qt/WebCoreSupport/FrameLoaderClientQt.cpp:989: warning: unused variable 'loadType'
WebKit/qt/WebCoreSupport/FrameLoaderClientQt.cpp:990: warning: unused variable 'childLoadType'
Comment 1 Laszlo Gombos 2009-09-07 13:15:48 PDT
Created attachment 39161 [details]
proposed patch.

Removed dead code except in WebCore/history/qt/HistoryItemQt.cpp, where it made more sense to comment it out.
Comment 2 Simon Hausmann 2009-09-08 03:28:24 PDT
Comment on attachment 39161 [details]
proposed patch.

r=me
Comment 3 Eric Seidel (no email) 2009-09-08 10:37:18 PDT
Comment on attachment 39161 [details]
proposed patch.

Clearing flags on attachment: 39161

Committed r48165: <http://trac.webkit.org/changeset/48165>
Comment 4 Eric Seidel (no email) 2009-09-08 10:37:21 PDT
All reviewed patches have been landed.  Closing bug.