WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
133467
[EFL]Build error in WebKit2/Shared/Downloads/soup/DownloadSoup.cpp
https://bugs.webkit.org/show_bug.cgi?id=133467
Summary
[EFL]Build error in WebKit2/Shared/Downloads/soup/DownloadSoup.cpp
Tanay
Reported
2014-06-02 23:24:10 PDT
/home/tanay.c/Webkit_svn_checkout/WebKit/Source/WebKit2/Shared/Downloads/soup/DownloadSoup.cpp: In member function ‘void WebKit::DownloadClient::handleResponseLater(const WebCore::ResourceResponse&)’: /home/tanay.c/Webkit_svn_checkout/WebKit/Source/WebKit2/Shared/Downloads/soup/DownloadSoup.cpp:190:128: error: call of overloaded ‘schedule(const char [37], std::_Bind_helper<false, void (WebKit::DownloadClient::*)(), WebKit::DownloadClient* const>::type)’ is ambiguous /home/tanay.c/Webkit_svn_checkout/WebKit/Source/WebKit2/Shared/Downloads/soup/DownloadSoup.cpp:190:128: note: candidates are: In file included from /home/tanay.c/Webkit_svn_checkout/WebKit/Source/WebKit2/Shared/Downloads/soup/DownloadSoup.cpp:35:0: /home/tanay.c/Webkit_svn_checkout/WebKit/Source/WTF/wtf/gobject/GMainLoopSource.h:53:29: note: void WTF::GMainLoopSource::schedule(const char*, std::function<void()>, int, std::function<void()>, GMainContext*) In file included from /home/tanay.c/Webkit_svn_checkout/WebKit/Source/WebKit2/Shared/Downloads/soup/DownloadSoup.cpp:35:0: /home/tanay.c/Webkit_svn_checkout/WebKit/Source/WTF/wtf/gobject/GMainLoopSource.h:54:29: note: void WTF::GMainLoopSource::schedule(const char*, std::function<bool()>, int, std::function<void()>, GMainContext*)
Attachments
Patch
(1.50 KB, patch)
2014-06-04 03:21 PDT
,
Tanay
no flags
Details
Formatted Diff
Diff
Patch
(1.48 KB, patch)
2014-06-04 03:38 PDT
,
Tanay
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Carlos Garcia Campos
Comment 1
2014-06-03 03:49:49 PDT
gcc 4.7 I guess, we need a explicit cast (or constructor) to workaround it
Csaba Osztrogonác
Comment 2
2014-06-03 04:15:15 PDT
(In reply to
comment #1
)
> gcc 4.7 I guess, we need a explicit cast (or constructor) to workaround it
Do we still support GCC 4.7 ?
Tanay
Comment 3
2014-06-04 03:21:04 PDT
Created
attachment 232470
[details]
Patch
Tanay
Comment 4
2014-06-04 03:23:39 PDT
The EFL build bots are using 4.8.1 version. However, I notice this error when compiling with GCC 4.7.3.
Carlos Garcia Campos
Comment 5
2014-06-04 03:26:25 PDT
Comment on
attachment 232470
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=232470&action=review
> Source/WebKit2/Shared/Downloads/soup/DownloadSoup.cpp:190 > - m_handleResponseLater.schedule("[WebKit] DownloadHandleResponseLater", std::bind(&DownloadClient::handleResponse, this)); > + m_handleResponseLater.schedule("[WebKit] DownloadHandleResponseLater", static_cast<std::function<void()>>(std::bind(&DownloadClient::handleResponse, this)));
I think you can use the function constructor instead of a static cast, something like std::function<void()>(std::bind(&DownloadClient::handleResponse, this)). I think it's cleaner.
Tanay
Comment 6
2014-06-04 03:37:21 PDT
(In reply to
comment #5
)
> (From update of
attachment 232470
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=232470&action=review
> > > Source/WebKit2/Shared/Downloads/soup/DownloadSoup.cpp:190 > > - m_handleResponseLater.schedule("[WebKit] DownloadHandleResponseLater", std::bind(&DownloadClient::handleResponse, this)); > > + m_handleResponseLater.schedule("[WebKit] DownloadHandleResponseLater", static_cast<std::function<void()>>(std::bind(&DownloadClient::handleResponse, this))); > > I think you can use the function constructor instead of a static cast, something like std::function<void()>(std::bind(&DownloadClient::handleResponse, this)). I think it's cleaner.
Sure, uploading another patch.
Tanay
Comment 7
2014-06-04 03:38:50 PDT
Created
attachment 232471
[details]
Patch
Carlos Garcia Campos
Comment 8
2014-06-04 04:08:11 PDT
Comment on
attachment 232471
[details]
Patch Thanks
WebKit Commit Bot
Comment 9
2014-06-05 04:30:44 PDT
Comment on
attachment 232471
[details]
Patch Clearing flags on attachment: 232471 Committed
r169612
: <
http://trac.webkit.org/changeset/169612
>
WebKit Commit Bot
Comment 10
2014-06-05 04:30:47 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