Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

extraneous old-style parameter list

35 views
Skip to first unread message

Andrei

unread,
Aug 15, 2010, 2:00:40 PM8/15/10
to
#define INTERRUPT __attribute__(interrupt)
void INTERRUPT pj0ISR(void) //error here
void INTERRUPT irqISR(void) //and here

what's going on here?

Jun Woong

unread,
Aug 16, 2010, 2:30:48 AM8/16/10
to

lcc does not recognize "__attribute__(interrupt)." It instead parses
that as a start of a non-prototype function definition that has a
name "__attribute__" and a parameter "interrupt." After that, it
encounters "pj0ISR(void)" or "irqISR(void)" that is recognized as
a (old-style) parameter declaration, but since there is no parameter
with such a name, it complains saying the message you quoted in the
title.

If that "interrupt" attribute is not really necessary on your
machine, you can simply

#define INTERRUPT

to get around the problem.


--
Jun, Woong (woong.jun at gmail.com)

0 new messages