[Bug c/118403] uninitialized warning with automatic union

stephen at networkplumber dot org gcc-bugzilla@gcc.gnu.org
Mon Jan 13 18:20:45 GMT 2025


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

--- Comment #11 from Stephen Hemminger <stephen at networkplumber dot org> ---
(In reply to Jakub Jelinek from comment #9)
> If this is in Linux kernel, I've told the kernel people they should use
> -fzero-init-padding-bits=unions because they rely on it for security reasons
> and don't want to change all the {0}s for union to {}s.
> See
> https://lore.kernel.org/linux-toolchains/CAHk-
> =wjkBODvjrNJPRYg2B9pvpPfzVirwOKLEUDOuGp_Djtyfw@mail.gmail.com/T/#t

No this is userspace project that runs on Linux, FreeBSD and Windows


More information about the Gcc-bugs mailing list