Bug 114443

Summary: Build fix: use of uninitialized variable in ScrollingStateTree
Product: WebKit Reporter: Adenilson Cavalcanti Silva <savagobr>
Component: WebCore Misc.Assignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: andersca, cmarcelo, commit-queue, jamesr, luiz, tonikitoo
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: Linux   
Attachments:
Description Flags
Initialize the pointer before use (clears compilation warning). none

Description Adenilson Cavalcanti Silva 2013-04-11 08:07:17 PDT
Current trunk will fail compilation in Linux/gcc/Qt5 thanks to this warning:

:
/home/adenilson/apps/webkit/Webkit/Source/WTF/wtf/HashTraits.h:76:57: error: ‘newNode’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
/home/adenilson/apps/webkit/Webkit/Source/WebCore/page/scrolling/ScrollingStateTree.cpp:65:25: note: ‘newNode’ was declared here
cc1plus: all warnings being treated as errors
make[3]: *** [.obj/release-shared/page/scrolling/ScrollingStateTree.o] Error 1
Comment 1 Adenilson Cavalcanti Silva 2013-04-11 08:11:06 PDT
Created attachment 197588 [details]
Initialize the pointer before use (clears compilation warning).
Comment 2 WebKit Commit Bot 2013-04-11 09:00:53 PDT
Comment on attachment 197588 [details]
Initialize the pointer before use (clears compilation warning).

Clearing flags on attachment: 197588

Committed r148206: <http://trac.webkit.org/changeset/148206>
Comment 3 WebKit Commit Bot 2013-04-11 09:00:56 PDT
All reviewed patches have been landed.  Closing bug.