diff --git a/reactos/cmake/gcc.cmake b/reactos/cmake/gcc.cmake index 5ec887b048d..a6c7fd6bc2c 100644 --- a/reactos/cmake/gcc.cmake +++ b/reactos/cmake/gcc.cmake @@ -111,7 +111,7 @@ else() endif() # Warnings, errors -if(NOT CMAKE_C_COMPILER_ID STREQUAL "Clang") +if((NOT CMAKE_BUILD_TYPE STREQUAL "Release") AND (NOT CMAKE_C_COMPILER_ID STREQUAL "Clang")) add_compile_flags("-Werror") endif()