From 01ce845fab4f68f0a57fb60791f815b6fb7d260a Mon Sep 17 00:00:00 2001 From: Manuel Schneider Date: Wed, 16 Oct 2024 16:35:21 +0200 Subject: [PATCH] Treat warnings on return type as errors. --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 14c00d2a..3ed12ccc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -20,11 +20,13 @@ set(ALBERT_COMPILE_OPTIONS -Wextra -Wpedantic + # warnings that should be errors + -Werror=return-type + # -Wconversion # -Weffc++ -Winline -Wmissing-field-initializers - -Wreturn-type -Wshadow -Wstrict-aliasing