diff options
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | src/kernel/acpi/acpi.c | 2 | ||||
-rw-r--r-- | src/kernel/gdt/gdt.c | 2 | ||||
-rw-r--r-- | src/kernel/interrupts/idt.c | 2 |
4 files changed, 4 insertions, 4 deletions
@@ -23,7 +23,7 @@ build: clean stripped=$$(echo "$${line}" | sed -r 's/\//_/g'); \ stripped=$${stripped#??????}; \ stripped=$${stripped%%?}o; \ - i686-elf-gcc -c ./"$${line}" -o ./build/"$${stripped}" -std=gnu99 -ffreestanding -O2 -Wall -Wextra || exit; \ + i686-elf-gcc -c ./"$${line}" -o ./build/"$${stripped}" -std=gnu99 -ffreestanding -O2 -Wall -Wextra -Wno-unused-parameter || exit; \ done <./build/tmp; \ rm ./build/tmp; \ diff --git a/src/kernel/acpi/acpi.c b/src/kernel/acpi/acpi.c index e307a6f..32b898b 100644 --- a/src/kernel/acpi/acpi.c +++ b/src/kernel/acpi/acpi.c @@ -44,7 +44,7 @@ unsigned int *acpi_check_rsd_ptr(unsigned int *ptr) { struct RSDPtr *rsdp = (struct RSDPtr *) ptr; char *bptr; char check = 0; - int i; + unsigned int i; if (memory_compare(sig, rsdp, 8) == 0) { bptr = (char *) ptr; diff --git a/src/kernel/gdt/gdt.c b/src/kernel/gdt/gdt.c index 813b432..e027fe6 100644 --- a/src/kernel/gdt/gdt.c +++ b/src/kernel/gdt/gdt.c @@ -9,7 +9,7 @@ struct gdt_entry { struct gdt_ptr { unsigned short limit; - unsigned int base; + void *base; } __attribute__((packed)); struct gdt_entry gdt[3]; diff --git a/src/kernel/interrupts/idt.c b/src/kernel/interrupts/idt.c index ba71339..3fb65b0 100644 --- a/src/kernel/interrupts/idt.c +++ b/src/kernel/interrupts/idt.c @@ -10,7 +10,7 @@ struct idt_entry { struct idt_ptr { unsigned short limit; - unsigned int base; + void *base; } __attribute__((packed)); // Initialize IDT with 256 entries |