Bug 50252

Summary: [GTK] Fix compilation warnings reported by clang
Product: WebKit Reporter: Alejandro G. Castro <alex>
Component: WebKitGTKAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: mrobinson, webkit.review.bot, xan.lopez
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: PC   
OS: Linux   
Attachments:
Description Flags
Proposed patch xan.lopez: review+

Description Alejandro G. Castro 2010-11-30 11:04:33 PST
Running with clang outputs some warnings, there are still other issues that avoid the compilation that we will probably have to fix before in other projects to have the complete support.
Comment 1 Alejandro G. Castro 2010-11-30 12:01:22 PST
Created attachment 75179 [details]
Proposed patch
Comment 2 WebKit Review Bot 2010-11-30 12:03:10 PST
Attachment 75179 [details] did not pass style-queue:

Failed to run "['WebKitTools/Scripts/check-webkit-style', '--diff-files', u'WebCore/ChangeLog', u'WebCore/platform/graphics/Path.h', u'WebCore/platform/network/soup/ResourceHandleSoup.cpp', u'WebKitTools/ChangeLog', u'WebKitTools/GtkLauncher/main.c']" exit_code: 1
WebKitTools/GtkLauncher/main.c:221:  Extra space before ( in function call  [whitespace/parens] [4]
Total errors found: 1 in 5 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 3 Alejandro G. Castro 2010-11-30 12:07:17 PST
(In reply to comment #2)
> Attachment 75179 [details] did not pass style-queue:
> 
> Failed to run "['WebKitTools/Scripts/check-webkit-style', '--diff-files', u'WebCore/ChangeLog', u'WebCore/platform/graphics/Path.h', u'WebCore/platform/network/soup/ResourceHandleSoup.cpp', u'WebKitTools/ChangeLog', u'WebKitTools/GtkLauncher/main.c']" exit_code: 1
> WebKitTools/GtkLauncher/main.c:221:  Extra space before ( in function call  [whitespace/parens] [4]
> Total errors found: 1 in 5 files
> 

False positive, that file has gtk style, not sure if we should change that at some point.
Comment 4 Xan Lopez 2010-11-30 12:10:24 PST
Comment on attachment 75179 [details]
Proposed patch

Should either make GtkLauncher follow WebKit style or make an exception in the script. My vote goes for the former.
Comment 5 Alejandro G. Castro 2010-11-30 12:15:49 PST
(In reply to comment #4)
> (From update of attachment 75179 [details])
> Should either make GtkLauncher follow WebKit style or make an exception in the script. My vote goes for the former.

I agree, I'll upload another bug for that.
Comment 6 Alejandro G. Castro 2010-12-05 11:22:28 PST
landed http://trac.webkit.org/changeset/73344