Bug 104978 - Fix build warning
Summary: Fix build warning
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-12-13 17:02 PST by Sanghyup Lee
Modified: 2012-12-14 10:21 PST (History)
7 users (show)

See Also:


Attachments
Patch (1.38 KB, patch)
2012-12-13 17:48 PST, Sanghyup Lee
no flags Details | Formatted Diff | Diff
Patch (1.44 KB, patch)
2012-12-13 18:09 PST, Sanghyup Lee
no flags Details | Formatted Diff | Diff
Patch (1.39 KB, patch)
2012-12-13 19:30 PST, Sanghyup Lee
no flags Details | Formatted Diff | Diff
Patch (1.35 KB, patch)
2012-12-13 22:56 PST, Sanghyup Lee
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Sanghyup Lee 2012-12-13 17:02:44 PST
Bug 104936 incorrectly remove code that initialize downloadID. Need to initialize downloadID to fix build warning.

Source/WebKit2/WebProcess/Downloads/Download.cpp:47:1: warning: unused parameter ‘downloadID’ [-Wunused-parameter]
Comment 1 Sanghyup Lee 2012-12-13 17:48:50 PST
Created attachment 179387 [details]
Patch
Comment 2 Kentaro Hara 2012-12-13 17:57:39 PST
Comment on attachment 179387 [details]
Patch

ok
Comment 3 Early Warning System Bot 2012-12-13 18:04:21 PST
Comment on attachment 179387 [details]
Patch

Attachment 179387 [details] did not pass qt-wk2-ews (qt):
Output: http://queues.webkit.org/results/15310532
Comment 4 Ryuan Choi 2012-12-13 18:06:50 PST
Comment on attachment 179387 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=179387&action=review

> Source/WebKit2/WebProcess/Downloads/Download.cpp:49
> +    : m_downloadID(downloadID)
>      : m_downloadManager(downloadManager)

Oops, this is wrong.

: should be ,
Comment 5 Sanghyup Lee 2012-12-13 18:09:35 PST
Created attachment 179391 [details]
Patch
Comment 6 Kentaro Hara 2012-12-13 18:10:25 PST
Comment on attachment 179391 [details]
Patch

sorry for overlooking the ,
Comment 7 Early Warning System Bot 2012-12-13 18:14:20 PST
Comment on attachment 179391 [details]
Patch

Attachment 179391 [details] did not pass qt-wk2-ews (qt):
Output: http://queues.webkit.org/results/15319487
Comment 8 Kentaro Hara 2012-12-13 18:18:25 PST
Maybe removing the initializer might be intentional. Let's wait for a comment from the patch author (See https://bugs.webkit.org/show_bug.cgi?id=104936).
Comment 9 KyungTae Kim 2012-12-13 18:54:00 PST
The build error is because of the order of the initialization list.
Please put the initialization of m_downloadID below the initialization of  m_downloadManager same with the header.

Source/WebKit2/WebProcess/Downloads/Download.cpp: In constructor ‘WebKit::Download::Download(WebKit::DownloadManager&, uint64_t, const WebCore::ResourceRequest&)’:
Source/WebKit2/WebProcess/Downloads/Download.cpp:49:5: error: expected identifier before ‘,’ token
Source/WebKit2/WebProcess/Downloads/Download.h:128:14: error: ‘WebKit::Download::m_downloadID’ will be initialized after [-Werror=reorder]
Source/WebKit2/WebProcess/Downloads/Download.h:127:22: error:   ‘WebKit::DownloadManager& WebKit::Download::m_downloadManager’ [-Werror=reorder]
Source/WebKit2/WebProcess/Downloads/Download.cpp:47:1: error:   when initialized here [-Werror=reorder]
Comment 10 WebKit Review Bot 2012-12-13 18:58:18 PST
Comment on attachment 179391 [details]
Patch

Attachment 179391 [details] did not pass chromium-ews (chromium-xvfb):
Output: http://queues.webkit.org/results/15321467

New failing tests:
inspector-protocol/debugger-terminate-dedicated-worker-while-paused.html
Comment 11 Sanghyup Lee 2012-12-13 19:30:34 PST
Created attachment 179403 [details]
Patch
Comment 12 Kentaro Hara 2012-12-13 19:35:19 PST
Comment on attachment 179403 [details]
Patch

Let's wait for a comment from the author of the original patch before landing.
Comment 13 Darin Adler 2012-12-13 22:39:00 PST
We don’t need to wait to land this. It seems clear this was just an editing error. Please land ASAP.
Comment 14 WebKit Review Bot 2012-12-13 22:44:16 PST
Comment on attachment 179403 [details]
Patch

Rejecting attachment 179403 [details] from commit-queue.

Failed to run "['/mnt/git/webkit-commit-queue/Tools/Scripts/webkit-patch', '--status-host=queues.webkit.org', '-..." exit_code: 2

Last 500 characters of output:
commit-queue/Source/WebKit/chromium/third_party/v8-i18n --revision 159 --non-interactive --force --accept theirs-conflict --ignore-externals' in '/mnt/git/webkit-commit-queue/Source/WebKit/chromium'
53>At revision 159.

________ running '/usr/bin/python tools/clang/scripts/update.py --mac-only' in '/mnt/git/webkit-commit-queue/Source/WebKit/chromium'

________ running '/usr/bin/python gyp_webkit' in '/mnt/git/webkit-commit-queue/Source/WebKit/chromium'
Updating webkit projects from gyp files...

Full output: http://queues.webkit.org/results/15321537
Comment 15 Kentaro Hara 2012-12-13 22:49:09 PST
Comment on attachment 179403 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=179403&action=review

> Source/WebKit2/ChangeLog:8
> +        Additional information of the change such as approach, rationale. Please add per-function descriptions below (OOPS!).

You need to describe a change description here. (OOPS is not allowed)
Comment 16 Sanghyup Lee 2012-12-13 22:56:09 PST
Created attachment 179421 [details]
Patch
Comment 17 WebKit Review Bot 2012-12-13 23:31:54 PST
Comment on attachment 179421 [details]
Patch

Clearing flags on attachment: 179421

Committed r137716: <http://trac.webkit.org/changeset/137716>
Comment 18 WebKit Review Bot 2012-12-13 23:31:58 PST
All reviewed patches have been landed.  Closing bug.
Comment 19 Anders Carlsson 2012-12-14 10:21:26 PST
Thanks for fixing this!