khtml/dom compiler warning
André Wöbbeking
Woebbeking at onlinehome.de
Sun Jan 22 08:58:17 GMT 2006
On Sunday 22 January 2006 09:56, Michael Pyne wrote:
> On Sunday 22 January 2006 03:36, André Wöbbeking wrote:
> > Hi,
> >
> >
> > I don't know if Bla* impl = impl is valid code but at least GCC 4
> > seems to don't like it.
>
> It is valid code, and gcc is mistaken in this case.
>
> 7 lines above is an if test:
> if (impl->isTextInputEvent()) {
>
> which doesn't get flagged by gcc as suspicious by your error report
> for some reason. Perhaps it's a gcc bug?
impl is a member variable and is shadowed at the mentioned warning. So
after Bla* impl the new local variable seems to be used instead of the
member variable. In this case it is used uninitialized.
More information about the kfm-devel
mailing list