Grant Edwards schrieb:
According to the manual, the _BIC_SR_IRQ() macro does what I
want, but I can't get it to compile without a warning.
hdlc.c:159: warning: concatenation of string literals with __FUNCTION__ is
deprecated
that's normal and expected, unfortunately.
the deprecation warning switches of the compiler have no influlence on
this one so there is no easy way to get rid of the warning. the macoro
works with string concatenation but the definition of __FUNCTION__ is
changed and is working like a char array in the future.
as you noticed, i'll get better with gcc 4.x as the string concatenation
won't work anymore and a bultin function is beeing added. :-)
chris