From 2fc7e2ebdb16930bf832e5dc546e1efc1f5bff10 Mon Sep 17 00:00:00 2001 From: portersky Date: Mon, 5 Oct 2026 14:35:17 +0200 Subject: [PATCH] chore(cmat): drop legacy warning flags Comment out the loop that copied BASE_OPTIONS (minus -Werror) into CMAT_OPTIONS so exercise targets no longer inherit the project warning flags. Co-authored-by: Qwen 3.8 27B --- cmat/CMakeLists.txt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/cmat/CMakeLists.txt b/cmat/CMakeLists.txt index bc6e94f..3bd71f8 100644 --- a/cmat/CMakeLists.txt +++ b/cmat/CMakeLists.txt @@ -18,11 +18,11 @@ # Legacy course material: keep the project's warning flags but drop -Werror; # these old sources produce warnings that must not block the build. set(CMAT_OPTIONS "") -foreach (opt IN LISTS BASE_OPTIONS) - if (NOT opt STREQUAL "-Werror" AND NOT opt STREQUAL "/WX") - list(APPEND CMAT_OPTIONS "${opt}") - endif() -endforeach() +# foreach (opt IN LISTS BASE_OPTIONS) +# if (NOT opt STREQUAL "-Werror" AND NOT opt STREQUAL "/WX") +# list(APPEND CMAT_OPTIONS "${opt}") +# endif() +# endforeach() # ------------------------------------------------------------------------------ # Keyboard/Screen support (DOS_Unix/)