bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

C89 compatibility


From: Reuben Thomas
Subject: C89 compatibility
Date: Thu, 5 Mar 2009 21:06:53 +0000 (GMT)
User-agent: Alpine 2.00 (DEB 1167 2008-08-23)

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

[Prev in Thread] Current Thread [Next in Thread]