[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[SCM] GNU Autoconf source repository branch, master, updated. v2.69-51-g
From: |
Paul Eggert |
Subject: |
[SCM] GNU Autoconf source repository branch, master, updated. v2.69-51-geeb7e7d |
Date: |
Mon, 10 Dec 2012 18:06:34 +0000 |
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU Autoconf source repository".
http://git.sv.gnu.org/gitweb/?p=autoconf.git;a=commitdiff;h=eeb7e7d58ed7e1fc0eaae53a61e910bd1272f5d2
The branch, master has been updated
via eeb7e7d58ed7e1fc0eaae53a61e910bd1272f5d2 (commit)
from 42b4918d161806fc56d15007c3129b50c1f94d12 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit eeb7e7d58ed7e1fc0eaae53a61e910bd1272f5d2
Author: Paul Eggert <address@hidden>
Date: Mon Dec 10 10:06:10 2012 -0800
AC_PROG_CC_C99: avoid unused-var warning
* lib/autoconf/c.m4 (_AC_C_C99_TEST_HEADER): Rewrite to use vars.
Problem reported by ChangZhuo Chen in
<http://lists.gnu.org/archive/html/bug-autoconf/2012-12/msg00000.html>.
-----------------------------------------------------------------------
Summary of changes:
lib/autoconf/c.m4 | 12 +++++++-----
1 files changed, 7 insertions(+), 5 deletions(-)
diff --git a/lib/autoconf/c.m4 b/lib/autoconf/c.m4
index 02b999e..e17df1e 100644
--- a/lib/autoconf/c.m4
+++ b/lib/autoconf/c.m4
@@ -1257,7 +1257,7 @@ test_restrict (ccp restrict text)
}
// Check varargs and va_copy.
-static void
+static bool
test_varargs (const char *format, ...)
{
va_list args;
@@ -1265,9 +1265,9 @@ test_varargs (const char *format, ...)
va_list args_copy;
va_copy (args_copy, args);
- const char *str;
- int number;
- float fnumber;
+ const char *str = "";
+ int number = 0;
+ float fnumber = 0;
while (*format)
{
@@ -1288,6 +1288,8 @@ test_varargs (const char *format, ...)
}
va_end (args_copy);
va_end (args);
+
+ return *str && number && fnumber;
}]])# _AC_C_C99_TEST_HEADER
# _AC_C_C99_TEST_BODY
@@ -1304,7 +1306,7 @@ AC_DEFUN([_AC_C_C99_TEST_BODY],
char *restrict newvar = "Another string";
// Check varargs.
- test_varargs ("s, d' f .", "string", 65, 34.234);
+ success &= test_varargs ("s, d' f .", "string", 65, 34.234);
test_varargs_macros ();
// Check flexible array members.
hooks/post-receive
--
GNU Autoconf source repository
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [SCM] GNU Autoconf source repository branch, master, updated. v2.69-51-geeb7e7d,
Paul Eggert <=