From 8b9a4571a4b72b7b4f4e5584a0fabca192964533 Mon Sep 17 00:00:00 2001 From: "Thiago Marcos P. Santos" Date: Thu, 12 Dec 2019 14:43:26 +0200 Subject: [PATCH] [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 2c13e7ece..6ee1593bb 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>