diff options
author | Thiago Marcos P. Santos <tmpsantos@gmail.com> | 2019-12-12 14:43:26 +0200 |
---|---|---|
committer | Thiago Marcos P. Santos <tmpsantos@gmail.com> | 2019-12-12 17:44:11 +0200 |
commit | 8b9a4571a4b72b7b4f4e5584a0fabca192964533 (patch) | |
tree | d085c20eabdfdddb689fc2bd3c05e4706f6b09ea /next | |
parent | 3bbea2e30c2a7942d16586c5dea770cccfba5ae0 (diff) | |
download | qtlocation-mapboxgl-8b9a4571a4b72b7b4f4e5584a0fabca192964533.tar.gz |
[build] Make the build fail when shadowing variables
Diffstat (limited to 'next')
-rw-r--r-- | next/CMakeLists.txt | 1 |
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> |