From 4800da9d57808157102d611f9c4d1df251d6bd29 Mon Sep 17 00:00:00 2001 From: Julien Schueller Date: Sat, 18 May 2024 08:59:33 +0200 Subject: [PATCH] Drop Werror to fix gcc14 build Closes https://github.com/OpenModelica/OpenModelica/issues/12432 --- src/OMSimulatorLib/CMakeLists.txt | 1 - 1 file changed, 1 deletion(-) diff --git a/src/OMSimulatorLib/CMakeLists.txt b/src/OMSimulatorLib/CMakeLists.txt index f6f716b43..ded7cb74a 100644 --- a/src/OMSimulatorLib/CMakeLists.txt +++ b/src/OMSimulatorLib/CMakeLists.txt @@ -9,7 +9,6 @@ ENDIF () IF (CMAKE_CXX_COMPILER_ID STREQUAL "Clang") SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror=uninitialized") ELSEIF (CMAKE_COMPILER_IS_GNUCC AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 5.1) - SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror=uninitialized") SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror=return-local-addr") SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror=return-type") if (ASAN)