From 9ed9dedb4f0a749ef3ff70eb4976291d00db56a0 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Thu, 18 Jun 2026 17:11:37 +0200 Subject: cmake: treat warnings as errors --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 82b62c1..28197a2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -7,9 +7,9 @@ project(aes_tools C CXX) enable_testing() if (MSVC) - add_compile_options(/MP /W4) + add_compile_options(/MP /W4 /WX) else() - add_compile_options(-Wall -Wextra) + add_compile_options(-Wall -Wextra -pedantic -Werror) endif() add_compile_definitions(WIN32_LEAN_AND_MEAN NOMINMAX) -- cgit v1.3