Conflicting types but function types are the same
Posted: Wed Jun 25, 2025 5:40 pm
I am getting these errors from my code:
I've been implementing my IDT, and it should be working fine, but it's saying that my function definitions have conflicting types, any help is much appreciated, thanks in advance
My project files: https://github.com/i-love-winter/SolsticeOS
Code: Select all
In file included from src/kernel/interrupts/idt.c:2:
src/kernel/interrupts/idt.h:19:25: warning: 'struct InterruptRegisters' declared inside parameter list will not be visible outside of this definition or declaration
19 | void isr_handler(struct InterruptRegisters* regs);
| ^~~~~~~~~~~~~~~~~~
src/kernel/interrupts/idt.c:135:6: error: conflicting types for 'isr_handler'; have 'void(struct InterruptRegisters *)'
135 | void isr_handler(struct InterruptRegisters* regs){
| ^~~~~~~~~~~
src/kernel/interrupts/idt.h:19:6: note: previous declaration of 'isr_handler' with type 'void(struct InterruptRegisters *)'
19 | void isr_handler(struct InterruptRegisters* regs);
| ^~~~~~~~~~~
make: *** [Makefile:18: includes] Error 1
My project files: https://github.com/i-love-winter/SolsticeOS