From b16e6e08be5dbad784c2a3e27fd005e51926b1f8 Mon Sep 17 00:00:00 2001 From: Aaron Jomy Date: Tue, 27 Aug 2024 14:27:50 +0200 Subject: [PATCH] Add the "-Wno-ignored-attributes" for the ignoring attributes on template parameters warning This is to suppress a bogus warning(and therefore error) on the CI while migrating to Ubuntu 24. See https://github.com/ARM-software/ComputeLibrary/issues/330 --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index bcd16a956..59e1adffa 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -299,7 +299,7 @@ endif() # Add appropriate flags for GCC if (LLVM_COMPILER_IS_GCC_COMPATIBLE) - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-common -Woverloaded-virtual -Wcast-qual -fno-strict-aliasing -pedantic -Wno-long-long -Wall -W -Wno-unused-parameter -Wwrite-strings") + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-common -Woverloaded-virtual -Wcast-qual -fno-strict-aliasing -pedantic -Wno-long-long -Wall -W -Wno-unused-parameter -Wwrite-strings -Wno-ignored-attributes") endif () # Fixes "C++ exception handler used, but unwind semantics are not enabled" warning Windows