From: Amelia Coutard Date: Mon, 25 Dec 2023 10:45:57 +0000 (+0100) Subject: J'ai toujours été pédante X-Git-Url: https://git.ameliathe1st.gay/?a=commitdiff_plain;h=1f5bae1f4a41bc90193462aabf28505daf0803de;p=voyage-au-centre-des-fichiers.git J'ai toujours été pédante --- diff --git a/Makefile b/Makefile index f8ac673..9fe55cf 100644 --- a/Makefile +++ b/Makefile @@ -14,7 +14,7 @@ endif build: # Build as default target -CXXFLAGS := -std=c++20 -fno-strict-aliasing -Wall -Wextra -Werror \ +CXXFLAGS := -std=c++20 -fno-strict-aliasing -Wall -Wextra -pedantic -Werror \ -mgeneral-regs-only -fno-exceptions -fno-rtti -ffreestanding -O2 \ -I libcpp $(CXXFLAGS) LDFLAGS := $(CXXFLAGS) $(LDFLAGS) diff --git a/kernel/src/interrupts.hpp b/kernel/src/interrupts.hpp index 564a4b6..1ea335f 100644 --- a/kernel/src/interrupts.hpp +++ b/kernel/src/interrupts.hpp @@ -52,7 +52,7 @@ void set_APIC_reg(amy::diff offset, amy::u32 v); struct isr_info { amy::ptr addr; - enum class type_t { trap_gate = 0xF, interrupt_gate = 0xE }; + enum class type_t : unsigned char { trap_gate = 0xF, interrupt_gate = 0xE }; type_t type : 4; amy::u8 dpl: 2 = 0b00; bool present : 1 = true; diff --git a/kernel/src/lib/multiboot2.hpp b/kernel/src/lib/multiboot2.hpp index 719edd8..1f1fd41 100644 --- a/kernel/src/lib/multiboot2.hpp +++ b/kernel/src/lib/multiboot2.hpp @@ -63,7 +63,7 @@ }; type_t type; amy::u32 size; - amy::u8 rest[]; + amy::u8 rest[9223372036854775799]; }; inline os::phys_ptr next(os::phys_ptr ptr) {