From 3e3c98182a043981b27d88550006ba7941ae359a Mon Sep 17 00:00:00 2001 From: Christian Rauch Date: Mon, 30 Oct 2023 23:36:56 +0100 Subject: [PATCH] turn all warnings into errors --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index ed9555ee..c97589af 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -4,7 +4,7 @@ project(camera_ros) set(CMAKE_CXX_STANDARD 17) if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang") - add_compile_options(-Wall -Wextra -Wpedantic) + add_compile_options(-Wall -Wextra -Wpedantic -Werror) add_link_options("-Wl,-z,relro,-z,now,-z,defs") endif()