bug-gnulib
[Top][All Lists]
Advanced

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

test-argmatch: fix a link failure


From: Jim Meyering
Subject: test-argmatch: fix a link failure
Date: Sat, 10 Nov 2007 16:34:02 +0100

coreutils will soon be including gnulib tests.
Here's the first fix, just pushed:

        Avoid link failure for the argmatch test.
        * tests/test-argmatch.c (usage): Define function to avoid a link
        failure: argmatch_die requires a usage function.

---
 ChangeLog             |    6 ++++++
 tests/test-argmatch.c |    5 +++++
 2 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 09587c1..1190f18 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2007-11-10  Jim Meyering  <address@hidden>
+
+       Avoid link failure for the argmatch test.
+       * tests/test-argmatch.c (usage): Define function to avoid a link
+       failure: argmatch_die requires a usage function.
+
 2007-11-09  Bruno Haible  <address@hidden>

        * doc/functions/snprintf.texi: Mention BeOS deficiency.
diff --git a/tests/test-argmatch.c b/tests/test-argmatch.c
index 6aa5fd8..3d6f968 100644
--- a/tests/test-argmatch.c
+++ b/tests/test-argmatch.c
@@ -62,6 +62,11 @@ static const enum backup_type backup_vals[] =
   numbered_backups, numbered_backups, numbered_backups
 };

+void
+usage (void)
+{
+}
+
 int
 main (int argc, char *argv[])
 {
--




reply via email to

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