From 35bcabdf0031494a2c4971a56b86ba34fb9df45c Mon Sep 17 00:00:00 2001 From: Amine Khaldi Date: Sun, 2 Mar 2014 22:11:49 +0000 Subject: [PATCH] [CMAKE] * Don't treat warnings like errors in the Clang build just yet. svn path=/trunk/; revision=62403 --- reactos/cmake/gcc.cmake | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/reactos/cmake/gcc.cmake b/reactos/cmake/gcc.cmake index 5f2c99d6470..9c31f25cce0 100644 --- a/reactos/cmake/gcc.cmake +++ b/reactos/cmake/gcc.cmake @@ -73,7 +73,11 @@ else() endif() # Warnings, errors -add_compile_flags("-Werror -Wall -Wpointer-arith") +if(NOT CMAKE_C_COMPILER_ID STREQUAL "Clang") + add_compile_flags("-Werror") +endif() + +add_compile_flags("-Wall -Wpointer-arith") add_compile_flags("-Wno-char-subscripts -Wno-multichar -Wno-unused-value") if(NOT CMAKE_C_COMPILER_ID STREQUAL "Clang")