#2 gcc 3.2 compiler

open
nobody
None
5
2002-09-06
2002-09-06
Anonymous
No

Hello,

following message does appear while compiling with gcc
3.2 :

netbuf.c:152: warning: concatenation of string literals
with __FUNCTION__ is deprecated

according to gcc :

Note that these semantics are deprecated, and that
GCC 3.2 will
handle `__FUNCTION__' and `__PRETTY_FUNCTION__' the
same way as
`__func__'. `__func__' is defined by the ISO standard C99:

The identifier `__func__' is implicitly declared by
the translator
as if, immediately following the opening brace of
each function
definition, the declaration
static const char __func__[] = "function-name";
appeared, where function-name is the name of
the lexically-enclosing
function. This name is the unadorned name of the
function.

Maybe, should replace

g_print(__FUNCTION__ "(), put over, trying to realloc
...!\n");

by

g_print("%s(), put over, trying to realloc ...!\n",
__func__);

This error does appear in irlmp.c, irkbd.c and netbuf.c

raulet@enib.fr, Mantis.

Discussion


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks