From e8f3f938060a4e85cbe088793e42d54257c49ba6 Mon Sep 17 00:00:00 2001 From: Deukhoofd Date: Sat, 18 Jul 2020 14:28:59 +0200 Subject: [PATCH] Further fixes for GCC throwing warnings in external files. --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index dc93f63..5e8a31f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -18,7 +18,9 @@ if (WINDOWS) endif (WINDOWS) if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU") - add_compile_options(-Wno-error=cast-function-type -Wno-cast-function-type -Wno-error=type-limits) + # The angelscript libraries break these warnings extensively. Turn them off. + add_compile_options(-Wno-error=cast-function-type -Wno-cast-function-type) + add_compile_options(-Wno-error=type-limits -Wno-type-limits) endif () message(STATUS "Using: