summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Wray <jason@mapbox.com>2017-12-15 19:41:04 -0500
committerJason Wray <jason@mapbox.com>2017-12-15 20:12:40 -0500
commitf4021c4a2ee985e33bdd088985a22c591503d234 (patch)
treee821366244ed934737a74438195e2682a92f3891
parent7ece4f6280657e429d840a76438c2fe1ceee6885 (diff)
downloadqtlocation-mapboxgl-f4021c4a2ee985e33bdd088985a22c591503d234.tar.gz
[build] Add new warnings suggested by Xcode 9
Also removes duplicate unknown pragmas warning.
-rw-r--r--cmake/mbgl.cmake9
1 files changed, 6 insertions, 3 deletions
diff --git a/cmake/mbgl.cmake b/cmake/mbgl.cmake
index d853950c0d..0393ff366e 100644
--- a/cmake/mbgl.cmake
+++ b/cmake/mbgl.cmake
@@ -143,11 +143,14 @@ macro(initialize_xcode_cxx_build_settings target)
# -Wshadow
set_xcode_property(${target} GCC_WARN_SHADOW YES)
- # -Wno-unknown-pragmas
- set_xcode_property(${target} GCC_WARN_UNKNOWN_PRAGMAS YES)
-
# -Wnon-virtual-dtor
set_xcode_property(${target} GCC_WARN_NON_VIRTUAL_DESTRUCTOR YES)
+
+ # -Wnon-literal-conversion
+ set_xcode_property(${target} CLANG_WARN_NON_LITERAL_NULL_CONVERSION YES)
+
+ # -Wrange-loop-analysis
+ set_xcode_property(${target} CLANG_WARN_RANGE_LOOP_ANALYSIS YES)
endmacro(initialize_xcode_cxx_build_settings)
# CMake 3.1 does not have this yet.