From 7ee03f7bc9f7fe7201c14e71aeb2f1b790f16425 Mon Sep 17 00:00:00 2001 From: "Thiago Marcos P. Santos" Date: Thu, 12 Dec 2019 14:43:26 +0200 Subject: [build] Make the build fail when shadowing variables --- next/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) 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( $<$:-fsanitize=unsigned-integer-overflow> $<$:-fno-rtti> $<$,$>>:-Wall> + $<$,$>>:-Wshadow> $<$,$>>:-Wextra> $<$,$>>:-Werror> $<$,$>:-Wno-error=tautological-constant-compare> -- cgit v1.2.1