What I did
Fix compilation with ASAN enabled for the Debian Bookworm with GCC version 12.2.0 (Debian 12.2.0-14).
Why I did it
The compilation fails due to the issue in GGC compiler: GCC Bugzilla – Bug 105562
The suggested fix is suppressing the maybe-uninitialized warning to overcome the problem and may be removed when the GCC version is upgraded to the one that includes the fix.
How I verified it
Compile SWSS package with ASAN enabled.
What I did Fix compilation with ASAN enabled for the Debian Bookworm with GCC version 12.2.0 (Debian 12.2.0-14).
Why I did it The compilation fails due to the issue in GGC compiler: GCC Bugzilla – Bug 105562 The suggested fix is suppressing the
maybe-uninitialized
warning to overcome the problem and may be removed when the GCC version is upgraded to the one that includes the fix.How I verified it Compile SWSS package with ASAN enabled.
Details if related Related to: https://github.com/sonic-net/sonic-swss/pull/3062