Fotis Panagiotopoulos
Fotis Panagiotopoulos

Reputation: 665

Eclipse CTD macro syntax error

I am using the following macro successfully.

#define SECTION(a)  __attribute__ ((section(#a)))

Now in the same file I defined a new macro, and I tried using it in my code:

#define GP_RAM_DATA_1       SECTION(".gp_ram1.data")

GP_RAM_DATA_1 int foo = 5;

The code compiles and runs fine, without compiler warnings or errors, however Eclipse marks the line I use the macro yellow, with a note for syntax error.

Is there anything wrong with my code? Is it an Eclipse bug, or should I change anything?

Upvotes: 1

Views: 334

Answers (1)

ddbug
ddbug

Reputation: 1549

It is an Eclipse bug. If the compiler is happy (and you do not disable warnings), all is good.

Upvotes: 1

Related Questions