WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
198724
[WinCairo] Remove build warning from RemoteInspector.
https://bugs.webkit.org/show_bug.cgi?id=198724
Summary
[WinCairo] Remove build warning from RemoteInspector.
Basuke Suzuki
Reported
2019-06-10 11:16:41 PDT
In `inspector/remote/socket/RemoteInspectorConnectionClient.h` an interface was defined with empty implementation. It is method to be overwritten by sub classes so that parameter name is important. This empty method generates warning. The subclasses of the class are just two and one has it's own implementation. It's good to define this as an abstract method and move default implementation to that sub class.
Attachments
PATCH
(2.50 KB, patch)
2019-06-10 11:32 PDT
,
Basuke Suzuki
no flags
Details
Formatted Diff
Diff
PATCH
(1.71 KB, patch)
2019-06-10 14:49 PDT
,
Basuke Suzuki
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Basuke Suzuki
Comment 1
2019-06-10 11:32:32 PDT
Created
attachment 371765
[details]
PATCH
Darin Adler
Comment 2
2019-06-10 13:46:55 PDT
Comment on
attachment 371765
[details]
PATCH View in context:
https://bugs.webkit.org/attachment.cgi?id=371765&action=review
> Source/JavaScriptCore/inspector/remote/socket/RemoteInspectorConnectionClient.h:40 > + virtual void didAccept(ConnectionID acceptedID, ConnectionID listenerID, Socket::Domain) = 0;
Alternative fix is: virtual void didAccept(ConnectionID /* acceptedID */, ConnectionID /* listenerID */, Socket::Domain) { } There’s no need to switch to pure virtual just to get rid of the unused argument warning. Your suggested change is OK if we think it’s better for other reasons.
Basuke Suzuki
Comment 3
2019-06-10 14:44:53 PDT
(In reply to Darin Adler from
comment #2
)
> Alternative fix is: > > virtual void didAccept(ConnectionID /* acceptedID */, ConnectionID /* > listenerID */, Socket::Domain) { }
That was also my first approach in downstream. The reason I changed my mind was I cannot be confident with that manner accepted by upstream. I will resend with commenting way. Thanks.
Basuke Suzuki
Comment 4
2019-06-10 14:49:38 PDT
Created
attachment 371780
[details]
PATCH
Joseph Pecoraro
Comment 5
2019-06-10 15:50:12 PDT
Comment on
attachment 371780
[details]
PATCH r=me, let me know I you need me to cq+
Basuke Suzuki
Comment 6
2019-06-10 17:09:28 PDT
Comment on
attachment 371780
[details]
PATCH Thanks!
WebKit Commit Bot
Comment 7
2019-06-10 17:38:54 PDT
Comment on
attachment 371780
[details]
PATCH Clearing flags on attachment: 371780 Committed
r246299
: <
https://trac.webkit.org/changeset/246299
>
WebKit Commit Bot
Comment 8
2019-06-10 17:38:56 PDT
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 9
2019-06-10 17:40:56 PDT
<
rdar://problem/51605252
>
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