* lib/autoconf/c.m4 (AC_LANG_BOOL_COMPILE_TRY(C)): Use `_array_'

to avoid GCC warnings.
From Uwe Seimet.
This commit is contained in:
Akim Demaille 2001-09-05 08:46:53 +00:00
parent 15d0a48936
commit 503e11606c
3 changed files with 12 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2001-09-05 Akim Demaille <akim@epita.fr>
* lib/autoconf/c.m4 (AC_LANG_BOOL_COMPILE_TRY(C)): Use `_array_'
to avoid GCC warnings.
From Uwe Seimet.
2001-09-05 Akim Demaille <akim@epita.fr>
* bin/autom4te.in: --language is -l, not -s.

1
THANKS
View File

@ -155,6 +155,7 @@ Tom Purcell Tom.Purcell@wang.com
Tom Tromey tromey@cygnus.com
Tom Yu tlyu@mit.edu
Tony Leneis tony@plaza.ds.adp.com
Uwe Seimet us@orbacus.com
Viktor Dukhovni viktor@anaheim.esm.com
Volker Borchert bt@teknon.de
Werner Lemberg wl@gnu.org

View File

@ -194,8 +194,12 @@ f = $1;
# AC_LANG_BOOL_COMPILE_TRY(C)(PROLOGUE, EXPRESSION)
# -------------------------------------------------
# Be sure to use this array to avoid `unused' warnings, which are even
# errors with `-W error'.
m4_define([AC_LANG_BOOL_COMPILE_TRY(C)],
[AC_LANG_PROGRAM([$1], [int _array_ @<:@1 - 2 * !($2)@:>@])])
[AC_LANG_PROGRAM([$1], [int _array_ @<:@1 - 2 * !($2)@:>@;
_array_ @<:@0@:>@ = 0
])])
# AC_LANG_INT_SAVE(C)(PROLOGUE, EXPRESSION)