Bug#439859: Change to inline breaks existing code
Consider the following case (simplified from a configure test of
experimental's goffice package):
conftest.c:
#include <sys/types.h>
#include <sys/stat.h>
Compile with
gcc -c -ansi -D_BSD_SOURCE conftest.c
Result with libc6-dev 2.6.1-3:
In file included from /usr/include/sys/types.h:223,
from conftest.c:1:
/usr/include/sys/sysmacros.h:65: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'unsigned'
/usr/include/sys/sysmacros.h:71: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'unsigned'
/usr/include/sys/sysmacros.h:77: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'unsigned'
This can (and IMHO should) be fixed by declaring the functions "__inline__"
rather than plain "inline". (See gcc's documentation of the -ansi switch for
details).
Greetings,
Ray
--
Would you rather be root or reboot?
Reply to: