summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThiago Marcos P. Santos <tmpsantos@gmail.com>2019-12-12 14:43:26 +0200
committerThiago Marcos P. Santos <tmpsantos@gmail.com>2019-12-12 14:43:26 +0200
commit7ee03f7bc9f7fe7201c14e71aeb2f1b790f16425 (patch)
treea45d3050b6524cb7030e23525095d0459515d978
parentb526818d95ad8c236da6c103f34e590bba34a045 (diff)
downloadqtlocation-mapboxgl-upstream/tmpsantos-shadow.tar.gz
[build] Make the build fail when shadowing variablesupstream/tmpsantos-shadow
-rw-r--r--next/CMakeLists.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/next/CMakeLists.txt b/next/CMakeLists.txt
index 2c13e7ece8..6ee1593bbd 100644
--- a/next/CMakeLists.txt
+++ b/next/CMakeLists.txt
@@ -49,6 +49,7 @@ target_compile_options(
$<$<STREQUAL:${MBGL_WITH_SANITIZER},undefined>:-fsanitize=unsigned-integer-overflow>
$<$<COMPILE_LANGUAGE:CXX>:-fno-rtti>
$<$<AND:$<COMPILE_LANGUAGE:CXX>,$<NOT:$<PLATFORM_ID:Windows>>>:-Wall>
+ $<$<AND:$<COMPILE_LANGUAGE:CXX>,$<NOT:$<PLATFORM_ID:Windows>>>:-Wshadow>
$<$<AND:$<COMPILE_LANGUAGE:CXX>,$<NOT:$<PLATFORM_ID:Windows>>>:-Wextra>
$<$<AND:$<COMPILE_LANGUAGE:CXX>,$<NOT:$<PLATFORM_ID:Windows>>>:-Werror>
$<$<AND:$<COMPILE_LANGUAGE:CXX>,$<PLATFORM_ID:Android>>:-Wno-error=tautological-constant-compare>