aboutsummaryrefslogtreecommitdiff
path: root/Makefile.config
diff options
context:
space:
mode:
authoraqua <aqua@iserlohn-fortress.net>2023-02-05 16:33:54 +0200
committeraqua <aqua@iserlohn-fortress.net>2023-02-05 16:33:54 +0200
commit266473671effeaa49d7043eab2c18c23d85f5a91 (patch)
tree8417c09e123956957e8296bae72a5fb8ae9a5461 /Makefile.config
parentRemove makefile include targets (diff)
downloadkernel-266473671effeaa49d7043eab2c18c23d85f5a91.tar.xz
Make shadowing variables an error
Diffstat (limited to 'Makefile.config')
-rw-r--r--Makefile.config4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile.config b/Makefile.config
index bbff402..5252c0d 100644
--- a/Makefile.config
+++ b/Makefile.config
@@ -34,13 +34,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})