On 2006-03-18, Chris Liechti <cliec...@gmx.net> wrote:

>>>>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.

Yea, there's a spot in the manual that mentions that you get a
warning when using _BIC_SR_IRQ().

> the deprecation warning switches of the compiler have no
> influlence on this one

I think those only control warnings for things that "users"
declare with the deprecated attribute.  This one is built-in to
the compiler.

> so there is no easy way to get rid of the warning.

I'm going to have a go at patching the compiler to get rid of
it either altogether, or make it be controlled by the
-Wno-deprecated-declarations switch.  Or maybe I'll enable the
-Wno-deprecated switch for C and use that.  I should just grit
my teeth and live with the warning, but where's the fun in
that?  

If I get it to work, I'll set you a copy of the patch.

> the macoro works with string concatenation but the definition
> of __FUNCTION__ is changed and is working like a char array in
> the future.

Another project I work on had to be tweaked because of that.

> as you noticed, i'll get better with gcc 4.x as the string
> concatenation won't work anymore and a bultin function is
> being added. :-)


-- 
gra...@visi.com
Grant Edwards


Reply via email to