[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: ANSI C89 and gnulib
From: |
Eric Blake |
Subject: |
Re: ANSI C89 and gnulib |
Date: |
Mon, 21 Sep 2009 23:25:16 +0000 (UTC) |
User-agent: |
Loom/3.14 (http://gmane.org/) |
Reuben Thomas <rrt <at> sc3d.org> writes:
> When building with -ansi -pedantic, I get warnings like this:
>
> In file included from printf-args.c:30:
> printf-args.h:105: warning: ISO C90 does not support 'long long'
The goal for gnulib is not necessarily strict C89 compliance, but rather using
C89 plus any extensions available that make life easier. In this case, the
compiler supports 'long long' as an extension, or we would not have defined
HAVE_LONG_LONG_INT. Are you sure your addition of -ansi -pedantic is happening
before the autocong probe prior to HAVE_LONG_LONG_INT?
But it _does_ seem reasonable that we should mark up our headers with
__extension__ to make gcc shut up about places where we knowingly use non-C89
constructs. So feel free to continue to report these issues, and/or patches.
--
Eric Blake