sonic-net / sonic-sairedis

SAI object interface to Redis database, as used in the SONiC project
Other
56 stars 259 forks source link

[asan] Disable the "maybe-uninitialized" warning when compiled with ASAN enabled. #1360

Closed oleksandrivantsiv closed 5 months ago

oleksandrivantsiv commented 5 months ago

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

oleksandrivantsiv commented 5 months ago

@kcudnik can you please merge this PR?