From 516cf54c75b3f9dc69d94fbc9051fe37e97040ed Mon Sep 17 00:00:00 2001 From: akallabeth Date: Fri, 20 Sep 2024 13:33:05 +0200 Subject: [PATCH] [compiler,warnings] disable -Wlanguage-extension-token Expression Statements are not supported by ISO C but we require it for certain macros. Disable this warning as it just yields false positives. --- cmake/CXXCompilerFlags.cmake | 1 + cmake/CompilerFlags.cmake | 1 + 2 files changed, 2 insertions(+) diff --git a/cmake/CXXCompilerFlags.cmake b/cmake/CXXCompilerFlags.cmake index 4ad13efe3..52411f328 100644 --- a/cmake/CXXCompilerFlags.cmake +++ b/cmake/CXXCompilerFlags.cmake @@ -43,6 +43,7 @@ if (ENABLE_WARNING_VERBOSE) -Wno-reserved-identifier -Wno-covered-switch-default -Wno-disabled-macro-expansion + -Wno-language-extension-token -Wno-ctad-maybe-unsupported -Wno-c++98-compat -Wno-c++98-compat-pedantic diff --git a/cmake/CompilerFlags.cmake b/cmake/CompilerFlags.cmake index cdb2ae4da..db0f4efb4 100644 --- a/cmake/CompilerFlags.cmake +++ b/cmake/CompilerFlags.cmake @@ -43,6 +43,7 @@ if (ENABLE_WARNING_VERBOSE) -Wno-reserved-identifier -Wno-covered-switch-default -Wno-disabled-macro-expansion + -Wno-language-extension-token ) endif()