WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
145129
[EFL] Fix mismatched-tags warnings in UIProcess/API/efl
https://bugs.webkit.org/show_bug.cgi?id=145129
Summary
[EFL] Fix mismatched-tags warnings in UIProcess/API/efl
Csaba Osztrogonác
Reported
2015-05-18 05:44:47 PDT
There are zillion mismatched-tags warnings in Source/WebKit2/UIProcess/API/efl, they should be fixed to be able use clang without any build warning. some examples: ../../Source/WebKit2/UIProcess/API/efl/ewk_view.h:217:9: warning: struct 'EwkView' was previously declared as a class [-Wmismatched-tags] ../../Source/WebKit2/UIProcess/API/efl/EwkView.h:83:1: warning: class 'EwkBackForwardList' was previously declared as a struct [-Wmismatched-tags] ../../Source/WebKit2/UIProcess/API/efl/EwkView.h:84:1: warning: class 'EwkColorPicker' was previously declared as a struct [-Wmismatched-tags] ../../Source/WebKit2/UIProcess/API/efl/EwkView.h:87:1: warning: class 'EwkPopupMenu' was previously declared as a struct [-Wmismatched-tags] ...
Attachments
Patch
(21.39 KB, patch)
2015-05-18 09:00 PDT
,
Csaba Osztrogonác
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Csaba Osztrogonác
Comment 1
2015-05-18 08:57:08 PDT
The problem is that these symbols are defined as class, but has forward declaration / typedef as structs to be able to use them from C code too. But it is incorrect in C++ code that's why we get this warning.
Csaba Osztrogonác
Comment 2
2015-05-18 09:00:55 PDT
Created
attachment 253326
[details]
Patch I'm not 100% sure if it is the best fix for this issue, but don't have better idea.
Gyuyoung Kim
Comment 3
2015-05-18 21:32:51 PDT
(In reply to
comment #2
)
> Created
attachment 253326
[details]
> Patch > > I'm not 100% sure if it is the best fix for this issue, but don't have > better idea.
I considered to add EflTypedefs.h defined in WTF though, now this patch touches public APIs. So I'm not sure if this approach is nice way too.
http://trac.webkit.org/browser/trunk/Source/WTF/wtf/efl/EflTypedefs.h
If we add EWKTypedefs.h in EFL WK2, many ewk_public header files should include the EWKTypedefs.h.
Gyuyoung Kim
Comment 4
2015-05-19 18:03:44 PDT
Comment on
attachment 253326
[details]
Patch Nobody has better idea to solve this issue. Let's go ahead.
WebKit Commit Bot
Comment 5
2015-05-21 02:27:17 PDT
Comment on
attachment 253326
[details]
Patch Clearing flags on attachment: 253326 Committed
r184710
: <
http://trac.webkit.org/changeset/184710
>
WebKit Commit Bot
Comment 6
2015-05-21 02:27:20 PDT
All reviewed patches have been landed. Closing bug.
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