[Bug tree-optimization/108402] False positive Wuninitialized with ftrivial-auto-var-init=pattern
pinskia at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sat Jan 14 05:49:25 GMT 2023
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108402
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
This has nothing to do with ftrivial-auto-var-init=pattern . But rather you are
passing an uninitiated struct to a function that takes a pointer to a const
type. That causes the warning.
Can you attach the original source as the reduced one has a correct warning.
More information about the Gcc-bugs
mailing list