Bug 116699 - [WK2][EFL][QT] Build break after r150610
Summary: [WK2][EFL][QT] Build break after r150610
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit2 (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Ryuan Choi
URL:
Keywords:
Depends on:
Blocks: 116690
  Show dependency treegraph
 
Reported: 2013-05-23 20:43 PDT by Ryuan Choi
Modified: 2013-05-23 22:14 PDT (History)
1 user (show)

See Also:


Attachments
Patch (1.16 KB, patch)
2013-05-23 20:45 PDT, Ryuan Choi
no flags Details | Formatted Diff | Diff
Patch (1.40 KB, patch)
2013-05-23 21:25 PDT, Ryuan Choi
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ryuan Choi 2013-05-23 20:43:26 PDT
EFL and QT using -Werror=maybe-uninitialized got below error.

/home/ryuan/workspace/project/webkit/efl-webkit/Source/WebKit2/UIProcess/WebPageProxy.cpp: In member function ‘void WebKit::WebPageProxy::findPlugin(const WTF::String&, uint32_t, const WTF::String&, const WTF::String&, const WTF::String&, bool, uint64_t&, WTF::String&, uint32_t&)’:
/home/ryuan/workspace/project/webkit/efl-webkit/Source/WebKit2/UIProcess/WebPageProxy.cpp:1440:155: error: ‘pluginProcessSandboxPolicy’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
cc1plus: all warnings being treated as errors
make[2]: *** [Source/WebKit2/CMakeFiles/WebKit2.dir/UIProcess/WebPageProxy.cpp.o] Error 1
Comment 1 Ryuan Choi 2013-05-23 20:45:38 PDT
Created attachment 202758 [details]
Patch
Comment 2 Anders Carlsson 2013-05-23 21:20:08 PDT
Comment on attachment 202758 [details]
Patch

This fix (while OK) has the downside of making the compiler not warn if we ever add more cases. I think a better fix is to just initialize the variable.
Comment 3 Ryuan Choi 2013-05-23 21:25:24 PDT
Created attachment 202762 [details]
Patch
Comment 4 Ryuan Choi 2013-05-23 21:29:16 PDT
(In reply to comment #2)
> (From update of attachment 202758 [details])
> This fix (while OK) has the downside of making the compiler not warn if we ever add more cases. I think a better fix is to just initialize the variable.

OK. I initialized the variable.
Comment 5 Csaba Osztrogonác 2013-05-23 22:11:38 PDT
Comment on attachment 202762 [details]
Patch

LGTM, I think it's safe if we use stricter policy if the variable is uninitialized.

I'm not an owner, but I don't think if we should wait for 
an owner to get up for this trivial buildfix. So r=me. 

And feel free to find a better fix after you get up.
Comment 6 Csaba Osztrogonác 2013-05-23 22:14:36 PDT
Comment on attachment 202762 [details]
Patch

Clearing flags on attachment: 202762

Committed r150624: <http://trac.webkit.org/changeset/150624>
Comment 7 Csaba Osztrogonác 2013-05-23 22:14:42 PDT
All reviewed patches have been landed.  Closing bug.