|
From: Tom H. <to...@co...> - 2005-09-11 10:17:49
|
In message <loo...@po...>
tim <tim...@gm...> wrote:
> i've got a question concerning the error message:
> Conditional jump or move depends on uninitialised value(s)
>
> it occurs on structures like this:
>
> while (s2 = *s1)
> {
> s1 = something(s2);
> }
>
> since the code is working, i'm pretty clueless, why i get this error.
> is it somehow possible to suppress this error message?
Well you don't want to suppress it, at least not until you understand
the cause properly.
The fairly obvious explanation is that at some point wither s2 or *s1
is not defined and hence the implicit equality test against zero in that
while results in an undefined result.
Time to start sticking in VALGRIND_CHECK_DEFINED calls to see which
of those variables it the problem I would say.
Tom
--
Tom Hughes (to...@co...)
http://www.compton.nu/
|