]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
* lib/autoconf/c.m4 (AC_LANG_BOOL_COMPILE_TRY(C)): Use `_array_'
authorAkim Demaille <akim@epita.fr>
Wed, 5 Sep 2001 08:46:53 +0000 (08:46 +0000)
committerAkim Demaille <akim@epita.fr>
Wed, 5 Sep 2001 08:46:53 +0000 (08:46 +0000)
to avoid GCC warnings.
From Uwe Seimet.

ChangeLog
THANKS
lib/autoconf/c.m4

index 6b909cbfbd80256567ada984f892946c13fbce2c..06c09a757bcb83d255313b6a0d954e8908e6d368 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.
diff --git a/THANKS b/THANKS
index de55ddd17143f33f4d084315470952afa16ab4b2..7aa996c5453da52f1bcf9bdc7d2d846b0a5cea72 100644 (file)
--- a/THANKS
+++ b/THANKS
@@ -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
index e908d005a785b946ac0d5836b8ade6d163b2aa0c..5bdeddeca842f35eedf2eb8efe5ad55a2565db3e 100644 (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)