RESOLVED FIXED 132331
Build warning in source/JavaScriptCore/dfg/DFGFixupPhase.cpp
https://bugs.webkit.org/show_bug.cgi?id=132331
Summary Build warning in source/JavaScriptCore/dfg/DFGFixupPhase.cpp
Tanay
Reported 2014-04-29 04:32:44 PDT
In file included from /home/tanay.c/webkit/Source/JavaScriptCore/dfg/DFGAdjacencyList.h:32:0, from /home/tanay.c/webkit/Source/JavaScriptCore/dfg/DFGNode.h:33, from /home/tanay.c/webkit/Source/JavaScriptCore/dfg/DFGBasicBlock.h:35, from /home/tanay.c/webkit/Source/JavaScriptCore/dfg/DFGGraph.h:34, from /home/tanay.c/webkit/Source/JavaScriptCore/dfg/DFGFixupPhase.cpp:31: /home/tanay.c/webkit/Source/JavaScriptCore/dfg/DFGEdge.h: In member function ‘void JSC::DFG::FixupPhase::injectTypeConversionsForEdge(JSC::DFG::Node*, JSC::DFG::Edge&)’: /home/tanay.c/webkit/Source/JavaScriptCore/dfg/DFGEdge.h:64:22: warning: ‘result’ may be used uninitialized in this function [-Wmaybe-uninitialized] /home/tanay.c/webkit/Source/JavaScriptCore/dfg/DFGFixupPhase.cpp:1898:19: note: ‘result’ was declared here In file included from /home/tanay.c/webkit/Source/JavaScriptCore/dfg/DFGAdjacencyList.h:32:0, from /home/tanay.c/webkit/Source/JavaScriptCore/dfg/DFGNode.h:33, from /home/tanay.c/webkit/Source/JavaScriptCore/dfg/DFGBasicBlock.h:35, from /home/tanay.c/webkit/Source/JavaScriptCore/dfg/DFGGraph.h:34, from /home/tanay.c/webkit/Source/JavaScriptCore/dfg/DFGFixupPhase.cpp:31: /home/tanay.c/webkit/Source/JavaScriptCore/dfg/DFGEdge.h: In member function ‘void JSC::DFG::FixupPhase::injectTypeConversionsInBlock(JSC::DFG::BasicBlock*)’: /home/tanay.c/webkit/Source/JavaScriptCore/dfg/DFGEdge.h:64:22: warning: ‘result’ may be used uninitialized in this function [-Wmaybe-uninitialized] /home/tanay.c/webkit/Source/JavaScriptCore/dfg/DFGFixupPhase.cpp:1898:19: note: ‘result’ was declared here In file included from /home/tanay.c/webkit/Source/JavaScriptCore/dfg/DFGAdjacencyList.h:32:0, from /home/tanay.c/webkit/Source/JavaScriptCore/dfg/DFGNode.h:33, from /home/tanay.c/webkit/Source/JavaScriptCore/dfg/DFGBasicBlock.h:35, from /home/tanay.c/webkit/Source/JavaScriptCore/dfg/DFGGraph.h:34, from /home/tanay.c/webkit/Source/JavaScriptCore/dfg/DFGFixupPhase.cpp:31: /home/tanay.c/webkit/Source/JavaScriptCore/dfg/DFGEdge.h:64:22: warning: ‘result’ may be used uninitialized in this function [-Wmaybe-uninitialized]
Attachments
Patch for build warning fix (1.94 KB, patch)
2014-05-05 23:02 PDT, Tanay
no flags
Patch (2.21 KB, patch)
2014-05-07 05:06 PDT, Tanay
no flags
Patch (2.03 KB, patch)
2014-05-07 22:06 PDT, Tanay
no flags
Patch (2.01 KB, patch)
2014-05-08 22:24 PDT, Tanay
no flags
Tanay
Comment 1 2014-05-05 23:02:01 PDT
Created attachment 230889 [details] Patch for build warning fix Patch to Fix build warning and coding style warning in DFGFixupPhase.cpp
Filip Pizlo
Comment 2 2014-05-05 23:21:45 PDT
Comment on attachment 230889 [details] Patch for build warning fix Looks like you need to rebase.
Tanay
Comment 3 2014-05-06 04:50:56 PDT
(In reply to comment #2) > (From update of attachment 230889 [details]) > Looks like you need to rebase. Rebased to r168352. Can still see the warning. Could you please let me know if I am missing some information?
Filip Pizlo
Comment 4 2014-05-06 06:54:01 PDT
(In reply to comment #3) > (In reply to comment #2) > > (From update of attachment 230889 [details] [details]) > > Looks like you need to rebase. > > Rebased to r168352. Can still see the warning. Could you please let me know if I am missing some information? What I mean is, can you upload a debased patch?
Tanay
Comment 5 2014-05-07 05:06:17 PDT
Filip Pizlo
Comment 6 2014-05-07 07:33:27 PDT
Comment on attachment 230990 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=230990&action=review > Source/JavaScriptCore/ChangeLog:93 > +>>>>>>> .r168416 You should remove the conflict markets.
Tanay
Comment 7 2014-05-07 22:06:45 PDT
Darin Adler
Comment 8 2014-05-08 12:33:07 PDT
Comment on attachment 231046 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=231046&action=review > Source/JavaScriptCore/dfg/DFGFixupPhase.cpp:1868 > + Node* result = 0; Please use nullptr instead of 0.
Tanay
Comment 9 2014-05-08 22:24:10 PDT
WebKit Commit Bot
Comment 10 2014-05-09 11:21:08 PDT
Comment on attachment 231130 [details] Patch Clearing flags on attachment: 231130 Committed r168540: <http://trac.webkit.org/changeset/168540>
WebKit Commit Bot
Comment 11 2014-05-09 11:21:11 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.