Skip to content

Commit d3f4861

Browse files
giantchenchenshuo
authored andcommitted
Update for clang 5. (#309)
1 parent 39e5c72 commit d3f4861

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

clang.diff

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,20 @@
11
diff --git a/CMakeLists.txt b/CMakeLists.txt
2-
index fcb8103..06fa58f 100644
2+
index fcb8103..c1f3967 100644
33
--- a/CMakeLists.txt
44
+++ b/CMakeLists.txt
5-
@@ -18,7 +18,9 @@ set(CXX_FLAGS
5+
@@ -18,7 +18,11 @@ set(CXX_FLAGS
66
-Wextra
77
-Werror
88
-Wconversion
9+
+ -Wno-null-dereference
910
+ -Wno-sign-conversion
11+
+ -Wno-unused-local-typedef
1012
-Wno-unused-parameter
1113
+ -Wno-unused-private-field
1214
-Wold-style-cast
1315
-Woverloaded-virtual
1416
-Wpointer-arith
15-
@@ -27,16 +29,15 @@ set(CXX_FLAGS
17+
@@ -27,16 +31,15 @@ set(CXX_FLAGS
1618
-march=native
1719
# -MMD
1820
# -std=c++0x

0 commit comments

Comments
 (0)