From ca5ce39490d4df893f8285f940602dc140b29247 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Sun, 18 Jul 2021 16:51:48 +0200 Subject: fix most current compiler warnings stack_top got changed into a char, because `extern void` isn't even valid. others are self-explanatory --- src/kernel/arch/i386/interrupts/isr.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/kernel/arch/i386/interrupts') diff --git a/src/kernel/arch/i386/interrupts/isr.c b/src/kernel/arch/i386/interrupts/isr.c index d2e3d0f..35796fa 100644 --- a/src/kernel/arch/i386/interrupts/isr.c +++ b/src/kernel/arch/i386/interrupts/isr.c @@ -4,21 +4,23 @@ #include #include +#define UNUSED __attribute__((unused)) + bool isr_test_interrupt_called = false; __attribute__((interrupt)) -void isr_double_fault(struct interrupt_frame *frame) { +void isr_double_fault(UNUSED struct interrupt_frame *frame) { log_const("#DF"); panic(); } __attribute__((interrupt)) -void isr_general_protection_fault(struct interrupt_frame *frame) { +void isr_general_protection_fault(UNUSED struct interrupt_frame *frame) { log_const("#GP"); panic(); } __attribute__((interrupt)) -void isr_test_interrupt(struct interrupt_frame *frame) { +void isr_test_interrupt(UNUSED struct interrupt_frame *frame) { isr_test_interrupt_called = true; } -- cgit v1.2.3