From 9df1ec2f4b17758b3c094aa9ccc96974d0608e39 Mon Sep 17 00:00:00 2001 From: Axel Heider Date: Mon, 26 Feb 2024 01:52:41 +0100 Subject: [PATCH] add -Wshadow Signed-off-by: Axel Heider --- elfloader-tool/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/elfloader-tool/CMakeLists.txt b/elfloader-tool/CMakeLists.txt index 99bf0997..f8b9792e 100644 --- a/elfloader-tool/CMakeLists.txt +++ b/elfloader-tool/CMakeLists.txt @@ -105,7 +105,7 @@ config_option( add_config_library(elfloader "${configure_string}") -add_compile_options(-D_XOPEN_SOURCE=700 -ffreestanding -Wall -Werror -W -Wextra) +add_compile_options(-D_XOPEN_SOURCE=700 -ffreestanding -Wall -Werror -W -Wextra -WShadow) set(linkerScript "${CMAKE_CURRENT_LIST_DIR}/src/arch-${KernelArch}/linker.lds") if(KernelArchRiscV) add_compile_options(-mcmodel=medany)