From bb65f473d535e6bcbc1a97beff5824397c0cd9cb Mon Sep 17 00:00:00 2001 From: Kenneth Heafield Date: Tue, 9 May 2023 17:50:11 +0100 Subject: [PATCH] Kludge to compile with gcc 12 https://github.com/marian-nmt/marian-dev/issues/990 --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index c97ce47c0..ac29b8e66 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -325,7 +325,7 @@ else(MSVC) list(APPEND ALL_WARNINGS -Wall; -Werror; -Wextra; -Wno-unused-result; -Wno-deprecated; -Wno-pragmas; -Wno-unused-parameter; -Wno-unused-function; -Wno-unused-value; -Wno-unknown-pragmas; -Wno-sign-compare; - -Wno-missing-field-initializers; ${CLANG_IGNORE_UNUSED_PRIVATE_FIELD}) + -Wno-missing-field-initializers; -Wno-use-after-free; -Wno-restrict; ${CLANG_IGNORE_UNUSED_PRIVATE_FIELD}) # This warning does not exist prior to gcc 5.0 if(CMAKE_COMPILER_IS_GNUCC AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 5.0)