[Bug middle-end/88518] Function call defeats -Wuninitialized

egallager at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Jun 17 05:39:00 GMT 2019


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88518

--- Comment #4 from Eric Gallager <egallager at gcc dot gnu.org> ---
Note that if h() has __attribute__((pure)) or __attribute__((const)) on it, you
then get the -Wuninitialized warning as expected. Of course, then you also get
a warning from -Wattributes about pure or const being used on a function
returning void, too...


More information about the Gcc-bugs mailing list