From 7bfa0dd93fb4adf45f062ae29aa06a3d95655f45 Mon Sep 17 00:00:00 2001 From: Eric Blake Date: Tue, 29 Dec 2009 21:39:33 -0700 Subject: [PATCH] stdio: remove unused variables Leftovers from 2007-05-24, commit e461ff7387. * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables. * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise. * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise. Signed-off-by: Eric Blake --- ChangeLog | 5 +++++ m4/fseeko.m4 | 8 +++----- m4/ftello.m4 | 8 +++----- m4/stdio_h.m4 | 4 +--- 4 files changed, 12 insertions(+), 13 deletions(-) diff --git a/ChangeLog b/ChangeLog index 6e2b549cd1..fb766c31e6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2009-12-29 Eric Blake + stdio: remove unused variables + * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables. + * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise. + * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise. + tests: test more substitute headers * modules/ctype-tests: New file. * modules/dirent-tests: Likewise. diff --git a/m4/fseeko.m4 b/m4/fseeko.m4 index feba6ab8e8..a4347479af 100644 --- a/m4/fseeko.m4 +++ b/m4/fseeko.m4 @@ -1,4 +1,4 @@ -# fseeko.m4 serial 6 +# fseeko.m4 serial 7 dnl Copyright (C) 2007-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, @@ -19,10 +19,8 @@ AC_DEFUN([gl_FUNC_FSEEKO], ]], [fseeko (stdin, 0, 0);])], [gl_cv_func_fseeko=yes], [gl_cv_func_fseeko=no]) ]) - if test $gl_cv_func_fseeko = no; then - HAVE_FSEEKO=0 - gl_REPLACE_FSEEKO - elif test $gl_cv_var_stdin_large_offset = no; then + if test $gl_cv_func_fseeko = no \ + || test $gl_cv_var_stdin_large_offset = no; then gl_REPLACE_FSEEKO fi ]) diff --git a/m4/ftello.m4 b/m4/ftello.m4 index e1f14170f9..225e985956 100644 --- a/m4/ftello.m4 +++ b/m4/ftello.m4 @@ -1,4 +1,4 @@ -# ftello.m4 serial 4 +# ftello.m4 serial 5 dnl Copyright (C) 2007, 2008, 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, @@ -18,10 +18,8 @@ AC_DEFUN([gl_FUNC_FTELLO], AC_TRY_LINK([#include ], [ftello (stdin);], [gl_cv_func_ftello=yes], [gl_cv_func_ftello=no]) ]) - if test $gl_cv_func_ftello = no; then - HAVE_FTELLO=0 - gl_REPLACE_FTELLO - elif test $gl_cv_var_stdin_large_offset = no; then + if test $gl_cv_func_ftello = no \ + || test $gl_cv_var_stdin_large_offset = no; then gl_REPLACE_FTELLO fi ]) diff --git a/m4/stdio_h.m4 b/m4/stdio_h.m4 index 256efe1cbd..c690565e73 100644 --- a/m4/stdio_h.m4 +++ b/m4/stdio_h.m4 @@ -1,4 +1,4 @@ -# stdio_h.m4 serial 21 +# stdio_h.m4 serial 22 dnl Copyright (C) 2007-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, @@ -89,8 +89,6 @@ AC_DEFUN([gl_STDIO_H_DEFAULTS], HAVE_DECL_SNPRINTF=1; AC_SUBST([HAVE_DECL_SNPRINTF]) HAVE_DECL_VSNPRINTF=1; AC_SUBST([HAVE_DECL_VSNPRINTF]) HAVE_DPRINTF=1; AC_SUBST([HAVE_DPRINTF]) - HAVE_FSEEKO=1; AC_SUBST([HAVE_FSEEKO]) - HAVE_FTELLO=1; AC_SUBST([HAVE_FTELLO]) HAVE_RENAMEAT=1; AC_SUBST([HAVE_RENAMEAT]) HAVE_VASPRINTF=1; AC_SUBST([HAVE_VASPRINTF]) HAVE_VDPRINTF=1; AC_SUBST([HAVE_VDPRINTF]) -- 2.30.2