Strange compilation error
Posted: Sat Jul 26, 2014 1:13 pm
Im using bran tutorial. Now im writing ISRs and i have this error:
Code: Select all
irq.c:26:58: warning: 'struct regs' declared inside parameter list
void irq_install_handler(int irq, void (*handler)(struct regs *r))
^
irq.c:26:58: warning: its scope is only this definition or declaration, which is probably not what you want
irq.c:74:25: warning: 'struct regs' declared inside parameter list
void irq_handler(struct regs *r)
^
irq.c: In function 'irq_handler':
irq.c:81:29: error: dereferencing pointer to incomplete type
handler = irq_routines[r->int_no - 32];
^
irq.c:90:10: error: dereferencing pointer to incomplete type
if (r->int_no >= 40)
^