build: disable bogus warnings for GCC 12 08/39808/2
authorJieqiang Wang <jieqiang.wang@arm.com>
Mon, 24 Jul 2023 07:42:22 +0000 (15:42 +0800)
committerDamjan Marion <dmarion@0xa5.net>
Tue, 7 Nov 2023 10:58:50 +0000 (10:58 +0000)
commit92ab407a5960d2e269b39826cac05f8133cb277b
tree5aa845e9dbe7b652a316b6aa1c98a32416e9575b
parent76d14b797c05aa5e7ac9aa9ee99e6b03ee0837db
build: disable bogus warnings for GCC 12

The array bounds and string overread check on GCC 12 report a dozen of
false positives that result in VPP build failures on ubuntu 22.04.
Work around this build issue by unconditionally disabling these two
warnings if C compiler is GCC 12 or newer version.

Type: fix
Signed-off-by: Jieqiang Wang <jieqiang.wang@arm.com>
Change-Id: I999e847bb625ebdf3ef5f11b11598c553f306670
src/CMakeLists.txt