libtool-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

FYI: testsuite: drop some unused variables and functions


From: Ralf Wildenhues
Subject: FYI: testsuite: drop some unused variables and functions
Date: Sat, 12 Jan 2008 15:07:23 +0100
User-agent: Mutt/1.5.13 (2006-08-11)

Applied this.  The only nontriviality was the last hunk, which is
leftover after I moved that bit of test to be done in mdemo-exec,
quite a while ago.

Cheers,
Ralf

2008-01-12  Ralf Wildenhues  <address@hidden>

        * 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.

Index: tests/am-subdir.at
===================================================================
RCS file: /cvsroot/libtool/libtool/tests/am-subdir.at,v
retrieving revision 1.14
diff -u -r1.14 am-subdir.at
--- tests/am-subdir.at  25 Mar 2007 12:12:43 -0000      1.14
+++ tests/am-subdir.at  12 Jan 2008 14:05:06 -0000
@@ -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 @@
 
 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/main.cxx]],
 [[#include "sub.hxx"
 
-int main (int, char *[])
+int main (void)
 {
   libsub SUB;
   return SUB.sub() != 27;
Index: tests/configure-iface.at
===================================================================
RCS file: /cvsroot/libtool/libtool/tests/configure-iface.at,v
retrieving revision 1.4
diff -u -r1.4 configure-iface.at
--- tests/configure-iface.at    12 Jan 2008 11:25:03 -0000      1.4
+++ tests/configure-iface.at    12 Jan 2008 14:05:06 -0000
@@ -36,7 +36,7 @@
 static int errors = 0;
 
 int
-main (int argc, char **argv)
+main (void)
 {
   lt_dlhandle handle;
 
Index: tests/ctor.at
===================================================================
RCS file: /cvsroot/libtool/libtool/tests/ctor.at,v
retrieving revision 1.1
diff -u -r1.1 ctor.at
--- tests/ctor.at       26 Apr 2007 22:34:05 -0000      1.1
+++ tests/ctor.at       12 Jan 2008 14:05:06 -0000
@@ -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 @@
 AT_DATA(main.cpp,
 [[#include "class.h"
 
-int main(int argc, char **argv)
+int main(void)
 {
   return instance.bar != magic;
 }
Index: tests/early-libtool.at
===================================================================
RCS file: /cvsroot/libtool/libtool/tests/early-libtool.at,v
retrieving revision 1.12
diff -u -r1.12 early-libtool.at
--- tests/early-libtool.at      25 Mar 2007 12:12:43 -0000      1.12
+++ tests/early-libtool.at      12 Jan 2008 14:05:06 -0000
@@ -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 @@
 extern void hello (void);
 
 int
-main (int argc, char *argv[])
+main (void)
 {
   printf ("Welcome to GNU Hell!\n");
 
Index: tests/lt_dladvise.at
===================================================================
RCS file: /cvsroot/libtool/libtool/tests/lt_dladvise.at,v
retrieving revision 1.3
diff -u -r1.3 lt_dladvise.at
--- tests/lt_dladvise.at        12 Jan 2008 11:25:03 -0000      1.3
+++ tests/lt_dladvise.at        12 Jan 2008 14:05:06 -0000
@@ -190,7 +190,7 @@
 }
 
 int
-main (int argc, char **argv)
+main (void)
 {
 
   LTDL_SET_PRELOADED_SYMBOLS();
Index: tests/old-m4-iface.at
===================================================================
RCS file: /cvsroot/libtool/libtool/tests/old-m4-iface.at,v
retrieving revision 1.13
diff -u -r1.13 old-m4-iface.at
--- tests/old-m4-iface.at       12 Jan 2008 14:00:57 -0000      1.13
+++ tests/old-m4-iface.at       12 Jan 2008 14:05:06 -0000
@@ -66,7 +66,7 @@
 AT_DATA([old.c],
 [[#include <stdio.h>
 
-int main (int argc, char **argv)
+int main (void)
 {
   printf ("Hello, World!");
   return 0;
Index: tests/lt_dlexit.at
===================================================================
RCS file: /cvsroot/libtool/libtool/tests/lt_dlexit.at,v
retrieving revision 1.8
diff -u -r1.8 lt_dlexit.at
--- tests/lt_dlexit.at  12 Jan 2008 11:25:03 -0000      1.8
+++ tests/lt_dlexit.at  12 Jan 2008 14:05:06 -0000
@@ -70,24 +70,9 @@
   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();




reply via email to

[Prev in Thread] Current Thread [Next in Thread]