https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104550
--- Comment #1 from qinzhao at gcc dot gnu.org --- Kees reported the following issue with -ftrivial-auto-var-init=pattern. the testing case was reduced from Kernel building. $ cat warns.i struct vx_audio_level { int has_monitor_level : 1; }; void vx_set_monitor_level() { struct vx_audio_level info; } $ gcc -Wall -Wno-unused-variable -ftrivial-auto-var-init=zero -c -o /dev/null warns.i $ gcc -Wall -Wno-unused-variable -ftrivial-auto-var-init=pattern -c -o /dev/null warns.i warns.i: In function 'vx_set_monitor_level': warns.i:6:25: warning: 'info' is used uninitialized [-Wuninitialized] 6 | struct vx_audio_level info; | ^~~~ warns.i:6:25: note: 'info' declared here 6 | struct vx_audio_level info; | ^~~~