|
From: <Woe...@on...> - 2006-10-19 22:18:59
|
Hi,
I get this warnings from Qt 3 code with GCC 4.1.1 on AMD64:
Conditional jump or move depends on uninitialised value(s)
for this code:
if (atEnd()) ...
with=20
inline bool QXmlSimpleReader::atEnd()
{ return (c.unicode()|0x0001) =3D=3D 0xffff; }
class QChar {
ushort &unicode() { return ucs; }
ushort ucs;
}
the disassembly is:
mov 0x40(%rbp),%eax
or $0x1,%eax
inc %ax
je 0x504ba10 <_ZN16QXmlSimpleReader11parsePrologEv+1120>
I don't know why an ushort is loaded to eax but as only ax is=20
incremented why does this trigger a warning in valgrind?
Cheers,
Andr=E9
|