2018-12-28 16:22:27 +01:00
|
|
|
From 5f372ba3502369c6501c77650a761300d26f64c0 Mon Sep 17 00:00:00 2001
|
2017-11-29 21:04:52 +01:00
|
|
|
From: Romain Naour <romain.naour@gmail.com>
|
|
|
|
Date: Thu, 22 Jun 2017 00:19:56 +0200
|
|
|
|
Subject: [PATCH] cmake: remove Werror
|
|
|
|
|
|
|
|
Signed-off-by: Romain Naour <romain.naour@gmail.com>
|
|
|
|
---
|
2018-12-28 16:22:27 +01:00
|
|
|
cmake/AddCompilationFlags.cmake | 2 +-
|
|
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
2017-11-29 21:04:52 +01:00
|
|
|
|
|
|
|
diff --git a/cmake/AddCompilationFlags.cmake b/cmake/AddCompilationFlags.cmake
|
2018-12-28 16:22:27 +01:00
|
|
|
index 2c105db7f..cb5c5719a 100644
|
2017-11-29 21:04:52 +01:00
|
|
|
--- a/cmake/AddCompilationFlags.cmake
|
|
|
|
+++ b/cmake/AddCompilationFlags.cmake
|
2018-12-28 16:22:27 +01:00
|
|
|
@@ -25,7 +25,7 @@ endif()
|
|
|
|
set(CMAKE_CXX_FLAGS_RELEASE "-Wno-error -Wall -Wextra -Wno-unknown-pragmas -Wno-fatal-errors ${CMAKE_CXX_FLAGS_RELEASE} -O3")
|
2017-11-29 21:04:52 +01:00
|
|
|
|
2018-12-28 16:22:27 +01:00
|
|
|
# Be more pedantic in debug mode for developers.
|
|
|
|
-set(CMAKE_CXX_FLAGS_DEBUG "-Werror -Wall -Wextra -Wno-error=deprecated-declarations -pedantic ${CMAKE_CXX_FLAGS_DEBUG} -DDEBUG")
|
|
|
|
+set(CMAKE_CXX_FLAGS_DEBUG "-Wno-error -Wall -Wextra -Wno-error=deprecated-declarations -pedantic ${CMAKE_CXX_FLAGS_DEBUG} -DDEBUG")
|
|
|
|
if(CMAKE_COMPILER_IS_GNUCXX)
|
|
|
|
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -Wsuggest-override")
|
|
|
|
endif()
|
2017-11-29 21:04:52 +01:00
|
|
|
--
|
2018-12-28 16:22:27 +01:00
|
|
|
2.14.5
|
2017-11-29 21:04:52 +01:00
|
|
|
|