From 330d97a9ba12c35d271ebf003183c523b582fabe Mon Sep 17 00:00:00 2001 From: Paul Smith Date: Tue, 16 Apr 2013 01:47:05 -0400 Subject: Cleanup some source and fix autoconf warnings. --- configure.ac | 6 +++--- dir.c | 2 -- rule.c | 4 +--- 3 files changed, 4 insertions(+), 8 deletions(-) diff --git a/configure.ac b/configure.ac index beaad13..2ba81ad 100644 --- a/configure.ac +++ b/configure.ac @@ -141,7 +141,7 @@ AS_IF([test "$ac_cv_func_gettimeofday" = yes], ]) AC_CHECK_FUNCS([strdup strndup mkstemp mktemp fdopen fileno \ - dup2 getcwd realpath sigsetmask sigaction \ + dup dup2 getcwd realpath sigsetmask sigaction \ getgroups seteuid setegid setlinebuf setreuid setregid \ getrlimit setrlimit setvbuf pipe strerror strsignal \ lstat readlink atexit]) @@ -351,13 +351,13 @@ AS_IF([test "$make_cv_load" = yes], [ AC_MSG_CHECKING([If the linker accepts -Wl,--export-dynamic]) old_LDFLAGS="$LDFLAGS" LDFLAGS="$LDFLAGS -Wl,--export-dynamic" - AC_LINK_IFELSE([int main(){}], + AC_LINK_IFELSE([AC_LANG_SOURCE([int main(){}])], [AC_MSG_RESULT([yes]) AC_SUBST([AM_LDFLAGS], [-Wl,--export-dynamic])], [AC_MSG_RESULT([no]) AC_MSG_CHECKING([If the linker accepts -rdynamic]) LDFLAGS="$old_LDFLAGS -rdynamic" - AC_LINK_IFELSE([int main(){}], + AC_LINK_IFELSE([AC_LANG_SOURCE([int main(){}])], [AC_MSG_RESULT([yes]) AC_SUBST([AM_LDFLAGS], [-rdynamic])], [AC_MSG_RESULT([no])]) diff --git a/dir.c b/dir.c index 69eeb48..59b2a8c 100644 --- a/dir.c +++ b/dir.c @@ -581,7 +581,6 @@ static int dir_contents_file_exists_p (struct directory_contents *dir, const char *filename) { - unsigned int hash; struct dirfile *df; struct dirent *d; #ifdef WINDOWS32 @@ -610,7 +609,6 @@ dir_contents_file_exists_p (struct directory_contents *dir, filename = vmsify (filename,0); #endif - hash = 0; if (filename != 0) { struct dirfile dirfile_key; diff --git a/rule.c b/rule.c index 7627225..c58ef40 100644 --- a/rule.c +++ b/rule.c @@ -70,7 +70,7 @@ count_implicit_rule_limits (void) { char *name; int namelen; - struct rule *rule, *lastrule; + struct rule *rule; num_pattern_rules = max_pattern_targets = max_pattern_deps = 0; max_pattern_dep_length = 0; @@ -78,7 +78,6 @@ count_implicit_rule_limits (void) name = 0; namelen = 0; rule = pattern_rules; - lastrule = 0; while (rule != 0) { unsigned int ndeps = 0; @@ -138,7 +137,6 @@ count_implicit_rule_limits (void) if (ndeps > max_pattern_deps) max_pattern_deps = ndeps; - lastrule = rule; rule = next; } -- cgit v1.2.3