diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2021-02-09 20:44:43 +0200 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2021-02-09 20:44:43 +0200 |
commit | a487d6ccee43bd6cd5ec648e8b97712595f681a7 (patch) | |
tree | 4b48fa9a6d409726e8619265efe2d2acd33bcf3f /toolchain.makefile | |
parent | Add more comments to GDT code (diff) | |
download | kernel.cpp-a487d6ccee43bd6cd5ec648e8b97712595f681a7.tar.xz |
Add some compiler warnings
Diffstat (limited to 'toolchain.makefile')
-rw-r--r-- | toolchain.makefile | 10 |
1 files changed, 8 insertions, 2 deletions
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 |