diff options
author | aqua <aqua@iserlohn-fortress.net> | 2023-02-05 16:33:54 +0200 |
---|---|---|
committer | aqua <aqua@iserlohn-fortress.net> | 2023-02-05 16:33:54 +0200 |
commit | 266473671effeaa49d7043eab2c18c23d85f5a91 (patch) | |
tree | 8417c09e123956957e8296bae72a5fb8ae9a5461 /i686 | |
parent | Remove makefile include targets (diff) | |
download | kernel-266473671effeaa49d7043eab2c18c23d85f5a91.tar.xz |
Make shadowing variables an error
Diffstat (limited to 'i686')
-rw-r--r-- | i686/toolchain.mk | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/i686/toolchain.mk b/i686/toolchain.mk index e97443f..8294660 100644 --- a/i686/toolchain.mk +++ b/i686/toolchain.mk @@ -6,13 +6,13 @@ AS := i686-elf-as CC := i686-elf-gcc CCID := $(shell ${CC} --version | head -n1) -CFLAGS := -Wall -Wextra -Wpedantic -Wshadow -Wconversion -fanalyzer -ffreestanding -std=gnu11 \ +CFLAGS := -Wall -Wextra -Wpedantic -Werror=shadow -Wconversion -fanalyzer -ffreestanding -std=gnu11 \ -mgeneral-regs-only \ $(shell echo ${CONFIG_CFLAGS}) CXX := i686-elf-g++ CXXID := $(shell ${CXX} --version | head -n1) -CXXFLAGS := -Wall -Wextra -Wpedantic -Wshadow -Wconversion -ffreestanding -std=c++17 \ +CXXFLAGS := -Wall -Wextra -Wpedantic -Werror=shadow -Wconversion -ffreestanding -std=c++17 \ -mgeneral-regs-only -fno-use-cxa-atexit -fno-threadsafe-statics -fno-exceptions -fno-rtti \ $(shell echo ${CONFIG_CXXFLAGS}) |