From ee3752b8b338f925219173e19956352c7e8e3d9d Mon Sep 17 00:00:00 2001 From: Alberto Miranda Date: Tue, 23 Aug 2022 12:44:55 +0200 Subject: [PATCH 1/2] Enable -Werror flag --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6f1a0aad..78e2d3e8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -293,7 +293,7 @@ find_package(RedisPlusPlus 1.3.3 REQUIRED) # ############################################################################## # set compile flags -add_compile_options("-Wall" "-Wextra" "$<$:-O3>") +add_compile_options("-Wall" "-Wextra" "-Werror" "$<$:-O3>") if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang") add_compile_options("-stdlib=libc++") else () -- GitLab From 0c215ef2f1c594b0adef2d90346f768f60c378d9 Mon Sep 17 00:00:00 2001 From: Alberto Miranda Date: Tue, 23 Aug 2022 12:48:49 +0200 Subject: [PATCH 2/2] Fix Release-only warnings --- src/scord-ctl/rpc_handlers.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scord-ctl/rpc_handlers.cpp b/src/scord-ctl/rpc_handlers.cpp index 74f349af..f53dc8a0 100644 --- a/src/scord-ctl/rpc_handlers.cpp +++ b/src/scord-ctl/rpc_handlers.cpp @@ -29,7 +29,7 @@ static void ADM_ping(hg_handle_t h) { - hg_return_t ret; + [[maybe_unused]] hg_return_t ret; [[maybe_unused]] margo_instance_id mid = margo_hg_handle_get_instance(h); -- GitLab