-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 According to Eric Blake on 10/30/2009 6:10 PM: > I'm committing this, to silence some unused variables, and to make > inttostr.c quiet even on older gcc.
And looking in config.log, I found these. - -- Don't work too hard, make some time for fun as well! Eric Blake e...@byu.net -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (Cygwin) Comment: Public key at home.comcast.net/~ericblake/eblake.gpg Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkru2WUACgkQ84KuGfSFAYB+hQCgqJsq9fEdZcGD9ztChJ1tscBT vZwAnAmj0U26P4mHFkVCpo49LAYsVNbP =dTlr -----END PGP SIGNATURE-----
>From 6203770684e686597b1b0583663b852d8a3ae241 Mon Sep 17 00:00:00 2001 From: Eric Blake <e...@byu.net> Date: Mon, 2 Nov 2009 06:03:20 -0700 Subject: [PATCH] maint: avoid compiler warnings in m4 macros * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable. * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header. Signed-off-by: Eric Blake <e...@byu.net> --- ChangeLog | 6 ++++++ m4/rmdir.m4 | 3 ++- m4/ungetc.m4 | 4 ++-- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 9761612..d4a4cb0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2009-11-02 Eric Blake <e...@byu.net> + + maint: avoid compiler warnings in m4 macros + * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable. + * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header. + 2009-10-30 Eric Blake <e...@byu.net> vasnprintf: avoid compiler warnings diff --git a/m4/rmdir.m4 b/m4/rmdir.m4 index addd69d..599b789 100644 --- a/m4/rmdir.m4 +++ b/m4/rmdir.m4 @@ -1,4 +1,4 @@ -# rmdir.m4 serial 6 +# rmdir.m4 serial 7 dnl Copyright (C) 2002, 2005, 2009 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -30,6 +30,7 @@ AC_DEFUN([gl_FUNC_RMDIR], [AC_LANG_PROGRAM( [[#include <stdio.h> #include <errno.h> + #include <unistd.h> ]], [[return !rmdir ("conftest.file/") || errno != ENOTDIR || !rmdir ("conftest.dir/./");]])], [gl_cv_func_rmdir_works=yes], [gl_cv_func_rmdir_works=no], diff --git a/m4/ungetc.m4 b/m4/ungetc.m4 index 9236d4c..eb65235 100644 --- a/m4/ungetc.m4 +++ b/m4/ungetc.m4 @@ -1,4 +1,4 @@ -# ungetc.m4 serial 1 +# ungetc.m4 serial 2 dnl Copyright (C) 2009 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -12,7 +12,7 @@ AC_DEFUN_ONCE([gl_FUNC_UNGETC_WORKS], [gl_cv_func_ungetc_works], [AC_RUN_IFELSE([AC_LANG_PROGRAM([[ #include <stdio.h> - ]], [FILE *f; long l; + ]], [FILE *f; if (!(f = fopen ("conftest.tmp", "w+"))) return 1; if (fputs ("abc", f) < 0) return 2; rewind (f); -- 1.6.5.rc1