Since gnulib works on many systems, I imagine it's supposed to work with C89 compilers?

I'm working on a project which uses C89, so I just added the -std=c89 flag to GCC when building it, to find potential problems. Unfortunately, some of the gnulib code I'm using now doesn't work:

In file included from gl_array_list.c:31:
xsize.h:52: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before 
‘size_t’
xsize.h:63: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before 
‘size_t’
xsize.h:73: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before 
‘size_t’
xsize.h:83: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before 
‘size_t’
gl_array_list.c: In function ‘grow’:
gl_array_list.c:239: warning: implicit declaration of function ‘xsum’
gl_array_list.c: At top level:
gl_array_list.c:492: warning: unused parameter ‘iterator’

The problem here is the use of "inline".

--
http://rrt.sc3d.org/ | think tank, n.  a safe container for noxious gases


Reply via email to