From d1e32fbb0e842c60d44a09dbda0881b0f40442e2 Mon Sep 17 00:00:00 2001 From: Daisuke Nishimatsu Date: Sun, 19 Jul 2026 18:05:14 +1000 Subject: [PATCH] Do not treat RSL warnings as errors This upstreams RoboStack downstream patch `patch/ros-rolling-rsl.patch`. Best-guess rationale: RSL_ENABLE_WARNINGS should enable diagnostic warnings without turning dependency or compiler-version warnings into hard build failures for downstream package builds. Signed-off-by: Tobias Fischer --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index a76718f..3d2be49 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -11,7 +11,7 @@ find_package(tl-expected REQUIRED) option(RSL_ENABLE_WARNINGS "Enable compiler warnings" OFF) if(RSL_ENABLE_WARNINGS AND CMAKE_CXX_COMPILER_ID MATCHES "(GNU|Clang)") - add_compile_options(-Werror -Wall -Wextra -Wpedantic -Wshadow -Wconversion -Wsign-conversion -Wold-style-cast) + add_compile_options(-Wall -Wextra -Wpedantic -Wshadow -Wconversion -Wsign-conversion -Wold-style-cast) endif() option(BUILD_SHARED_LIBS "Build shared libraries" ON)