From 3ce40162213dcd8c058d999a5b0e440b854844c7 Mon Sep 17 00:00:00 2001 From: Ian McInerney Date: Fri, 10 Mar 2023 13:46:59 +0000 Subject: [PATCH] kimath: Enable warnings kimath was missed when the original warnings infrastructure was added, so enable warnings in it now. --- libs/kimath/CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libs/kimath/CMakeLists.txt b/libs/kimath/CMakeLists.txt index 2c2d928880..d1f3279077 100644 --- a/libs/kimath/CMakeLists.txt +++ b/libs/kimath/CMakeLists.txt @@ -1,3 +1,9 @@ +# Add all the warnings to the files +if( COMPILER_SUPPORTS_WARNINGS ) + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${WARN_FLAGS_CXX}") + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${WARN_FLAGS_C}") +endif() + set( KIMATH_SRCS src/bezier_curves.cpp src/convert_basic_shapes_to_polygon.cpp