blob: 5ac6e7c5a6da8f00442882bc7a31552000500201 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
From: Pavel Sobolev <contact@paveloom.dev>
Subject: [PATCH] Strip `-Werror`.
Signed-off-by: Pavel Sobolev <contact@paveloom.dev>
--- a/tests/CMakeLists.txt
+++ b/tests/CMakeLists.txt
@@ -28,11 +28,11 @@ string(CONCAT generator
"$<$<OR:$<CXX_COMPILER_ID:GNU>"
",$<CXX_COMPILER_ID:Clang>"
",$<CXX_COMPILER_ID:AppleClang>>"
- ":-Wall;-Wextra;-Wpedantic;-Werror;-Wshadow;"
+ ":-Wall;-Wextra;-Wpedantic;-Wshadow;"
"$<$<BOOL:${frozen.coverage}>:--coverage>>"
"$<$<CXX_COMPILER_ID:Intel>:"
"$<$<PLATFORM_ID:Windows>:/W3;/WX;>"
- "$<$<NOT:$<PLATFORM_ID:Windows>>:-Wall;-Werror>>")
+ "$<$<NOT:$<PLATFORM_ID:Windows>>:-Wall>>")
target_compile_options(frozen.tests PUBLIC ${generator})
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -1,7 +1,7 @@
SRCS=test_main.cpp test_rand.cpp test_set.cpp test_map.cpp test_unordered_set.cpp test_str_set.cpp test_unordered_str_set.cpp test_unordered_map.cpp test_unordered_map_str.cpp test_str.cpp test_algorithms.cpp
TARGET=test_main
-CXXFLAGS=-O3 -Wall -std=c++14 -march=native -Wextra -W -Werror -Wshadow -fPIC
+CXXFLAGS=-O3 -Wall -std=c++14 -march=native -Wextra -W -Wshadow -fPIC
CPPFLAGS=-I../include
all:$(TARGET)
|