From a487d6ccee43bd6cd5ec648e8b97712595f681a7 Mon Sep 17 00:00:00 2001 From: Aqua-sama Date: Tue, 9 Feb 2021 20:44:43 +0200 Subject: Add some compiler warnings --- toolchain.makefile | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'toolchain.makefile') diff --git a/toolchain.makefile b/toolchain.makefile index f5fb1b1..fe916e4 100644 --- a/toolchain.makefile +++ b/toolchain.makefile @@ -9,8 +9,14 @@ LD_FLAGS := -T linker.ld CXX := clang++ CXX_FLAGS := -std=c++20 -ffreestanding -nostdlib -nostdinc -nostdinc++ \ - -fno-exceptions -fno-rtti -Wall -Wextra -O2 -CXX_INCLUDE := $(CURDIR)/libk $(CURDIR)/grub + -fno-exceptions -fno-rtti -Wall -Wextra -Werror=pedantic -O2 \ + -Werror=date-time \ + -Werror=shadow-all \ + -Wnon-virtual-dtor \ + -Wold-style-cast -Wconversion \ + -Wconsumed +CXX_INCLUDE := $(CURDIR)/libk +CXX_SYSTEM_INCLUDE := $(CURDIR)/grub # BOOT := grub-mkrescue -- cgit v1.2.1