From: Ralf Wildenhues Date: Sat, 12 Jan 2008 14:07:02 +0000 (+0000) Subject: * tests/am-subdir.at: Drop unused variables. X-Git-Tag: release-2-1b~31 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=12108ff510b54f445ceadbe9d3de3838cf0a6732;p=thirdparty%2Flibtool.git * tests/am-subdir.at: Drop unused variables. * tests/configure-iface.at: Likewise. * tests/ctor.at: Likewise. * tests/early-libtool.at: Likewise. * tests/lt_dladvise.at: Likewise. * tests/old-m4-iface.at: Likewise. * tests/lt_dlexit.at: Likewise. Also drop unused functions. --- diff --git a/ChangeLog b/ChangeLog index f7249fd14..9c2f959b1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,13 @@ 2008-01-12 Ralf Wildenhues + * tests/am-subdir.at: Drop unused variables. + * tests/configure-iface.at: Likewise. + * tests/ctor.at: Likewise. + * tests/early-libtool.at: Likewise. + * tests/lt_dladvise.at: Likewise. + * tests/old-m4-iface.at: Likewise. + * tests/lt_dlexit.at: Likewise. Also drop unused functions. + * tests/old-m4-iface.at (AM_PROG_LIBTOOL): Also copy needed lt~obsolete.m4. diff --git a/tests/am-subdir.at b/tests/am-subdir.at index 4ace3e06e..c8396f0d3 100644 --- a/tests/am-subdir.at +++ b/tests/am-subdir.at @@ -1,6 +1,6 @@ # am-subdir.at -- libtool subdir-objects support -*- Autotest -*- -# Copyright (C) 2004 Free Software Foundation, Inc. +# Copyright (C) 2004, 2008 Free Software Foundation, Inc. # Written by Gary V. Vaughan, 2004 # # This file is part of GNU Libtool. @@ -62,7 +62,7 @@ AT_DATA([[subdir/main.c]], extern void sub (void); -int main (int argc, char **argv) +int main (void) { printf ("Welcome to GNU Libtool subdir-objects test!\n"); sub(); @@ -142,7 +142,7 @@ AT_DATA([[subdir/sub.hxx]], AT_DATA([[subdir/main.cxx]], [[#include "sub.hxx" -int main (int, char *[]) +int main (void) { libsub SUB; return SUB.sub() != 27; diff --git a/tests/configure-iface.at b/tests/configure-iface.at index 10d8026de..9ca7b8e40 100644 --- a/tests/configure-iface.at +++ b/tests/configure-iface.at @@ -36,7 +36,7 @@ typedef int funcp (void); static int errors = 0; int -main (int argc, char **argv) +main (void) { lt_dlhandle handle; diff --git a/tests/ctor.at b/tests/ctor.at index 7d701a4a8..d5f1e08b8 100644 --- a/tests/ctor.at +++ b/tests/ctor.at @@ -1,6 +1,6 @@ # ctor.at -- Test constructors via C++ -*- Autotest -*- # -# Copyright (C) 2007 Free Software Foundation, Inc. +# Copyright (C) 2007, 2008 Free Software Foundation, Inc. # Written by Noah Misch, 2007 # # This file is part of GNU Libtool. @@ -47,7 +47,7 @@ Foo instance; AT_DATA(main.cpp, [[#include "class.h" -int main(int argc, char **argv) +int main(void) { return instance.bar != magic; } diff --git a/tests/early-libtool.at b/tests/early-libtool.at index 927cdfaf9..74d3a8451 100644 --- a/tests/early-libtool.at +++ b/tests/early-libtool.at @@ -1,6 +1,6 @@ # early-libtool.at -- early libtool script generation -*- Autotest -*- -# Copyright (C) 2005, 2006, 2007 Free Software Foundation, Inc. +# Copyright (C) 2005, 2006, 2007, 2008 Free Software Foundation, Inc. # Written by Gary V. Vaughan, 2005 # # This file is part of GNU Libtool. @@ -89,7 +89,7 @@ AT_DATA([main.c], extern void hello (void); int -main (int argc, char *argv[]) +main (void) { printf ("Welcome to GNU Hell!\n"); diff --git a/tests/lt_dladvise.at b/tests/lt_dladvise.at index c67b3a053..5c50d0674 100644 --- a/tests/lt_dladvise.at +++ b/tests/lt_dladvise.at @@ -190,7 +190,7 @@ hint_global (void) } int -main (int argc, char **argv) +main (void) { LTDL_SET_PRELOADED_SYMBOLS(); diff --git a/tests/lt_dlexit.at b/tests/lt_dlexit.at index 2229f1920..fe0f5c841 100644 --- a/tests/lt_dlexit.at +++ b/tests/lt_dlexit.at @@ -70,24 +70,9 @@ xdlsymtest (lt_dlhandle handle, const char *func, const char *var) return (*pf) (*pv); } -static int -callback (const char *filename, void *data) -{ - printf ("%s: %s\n", (char *)data, filename); - return 0; -} - -static int -try_iterate (const char *search_path) -{ - char *s = "try_iterate"; - return lt_dlforeachfile (search_path, callback, s); -} - int -main (int argc, char **argv) +main (void) { - int i; lt_dlhandle b1; LTDL_SET_PRELOADED_SYMBOLS(); diff --git a/tests/old-m4-iface.at b/tests/old-m4-iface.at index c24ab18ee..d481c9764 100644 --- a/tests/old-m4-iface.at +++ b/tests/old-m4-iface.at @@ -66,7 +66,7 @@ old@EXEEXT@: old.@OBJEXT@ AT_DATA([old.c], [[#include -int main (int argc, char **argv) +int main (void) { printf ("Hello, World!"); return 0;