]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
* lib/autoconf/general.m4 (AC_CHECK_DECL): Avoid unused variable warning.
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 15 Feb 2006 22:07:12 +0000 (22:07 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 15 Feb 2006 22:07:12 +0000 (22:07 +0000)
ChangeLog
lib/autoconf/general.m4

index ff4e014f24d9aee2b702f070a429bd9e90eed5e5..48e36b1f6618f322d4a2df11513c14bd038a2b24 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2006-02-15  Eric Blake  <ebb9@byu.net>
+
+       * lib/autoconf/general.m4 (AC_CHECK_DECL): Avoid unused variable
+       warning.
+
 2006-02-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
        * lib/m4sugar/m4sh.m4 (AS_CASE): New macro.
index a63d71cc14cc61245905d3fdfa92648ec4acc41b..c1579b6670e9556a48932b53ae1c32bef648b6ea 100644 (file)
@@ -1,7 +1,7 @@
 # This file is part of Autoconf.                       -*- Autoconf -*-
 # Parameterized macros.
 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
-# 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
+# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
 
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -2433,6 +2433,7 @@ AC_CACHE_CHECK([whether $1 is declared], ac_Symbol,
 [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([AC_INCLUDES_DEFAULT([$4])],
 [#ifndef $1
   char *p = (char *) $1;
+  return !p;
 #endif
 ])],
                   [AS_VAR_SET(ac_Symbol, yes)],