[Webkit-unassigned] [Bug 60128] Compiler warning "eventWasHandled may be used without initialized" in WebView/WebHTMLView.mm.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed May 4 11:17:23 PDT 2011


https://bugs.webkit.org/show_bug.cgi?id=60128





--- Comment #3 from Yongjun Zhang <yongjun_zhang at apple.com>  2011-05-04 11:17:22 PST ---
(In reply to comment #2)
> (From update of attachment 92263 [details])
> What compiler is that? I don't think that the warning is correct.

I think normally the compiler is smart enough to see eventWasHandled is covered in  all if/else branches in [WebHTMLView doCommandBySelector:].  And the warning only happens when I ifdefed out the else block in WebHTMLView.mm:6689 since the compiler now sees one branch is missing and eventWasHandled could be uninitialized.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list