[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: C89 compatibility
From: |
Simon Josefsson |
Subject: |
Re: C89 compatibility |
Date: |
Thu, 05 Mar 2009 23:03:45 +0100 |
User-agent: |
Gnus/5.110011 (No Gnus v0.11) Emacs/23.0.90 (gnu/linux) |
Reuben Thomas <address@hidden> writes:
> Since gnulib works on many systems, I imagine it's supposed to work
> with C89 compilers?
Yes.
> 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".
Did you run all the gnulib configure tests using the same compiler and
flags? You can't change compiler and flags after running configure.
/Simon