gcc, ever improving ... :-)
Eric W Biederman
ebiederman at lnxi.com
Thu Oct 17 16:43:01 CEST 2002
Ronald G Minnich <rminnich at lanl.gov> writes:
> printk_debug(__FUNCTION__ "\n");
>
> You get the message:
>
> /home/rminnich/src/freebios/src/arch/i386/lib/hardwaremain.c:139: warning:
> concatenation of string literals with __FUNCTION__ is deprecated
>
> OK, I use this technique quite a bit. Anybody know why this handy little
> trick is 'deprecated'?
Because I believe all __FUNCTION__ is guaranteed to be by the standard
is a string pointer. And I think it not being that way caused someone
some pain in gcc.
Just make it:
printk_debug("%s\n", __FUNCTION__);
Eric
More information about the coreboot
mailing list