Thanks for the hint, Sean.
While that might work perfectly fine, I'm personally not a big fan of these 
types of tools. They're fine for proofing a theory but shouldn't be used to 
'cover up' developer mistakes. Code should be written as solidly as possible.

Cheers,
Thomas

________________________________
From: Sean McBride <[email protected]>
Sent: Monday, June 17, 2024 6:08 PM
To: David Chapman <[email protected]>
Cc: Thomas Wollenzin <[email protected]>; [email protected] 
<[email protected]>
Subject: Re: [Valgrind-users] Question regarding 'Conditional jump or move 
depends on uninitialised value(s)'

On 15 Jun 2024, at 16:41, David Chapman via Valgrind-users wrote:

> Then schedule a pass to go over all your code and initialize everything else. 
>  You won't regret it.

and/or build with -ftrivial-auto-var-init=zero

See also:
https://discourse.llvm.org/t/making-ftrivial-auto-var-init-zero-a-first-class-option/55143/

Sean
_______________________________________________
Valgrind-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/valgrind-users

Reply via email to