bug-gnulib
[Top][All Lists]
Advanced

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

[PATCH] test-getopt.h: avoid warning about an unused variable


From: Jim Meyering
Subject: [PATCH] test-getopt.h: avoid warning about an unused variable
Date: Fri, 08 Jul 2011 23:20:31 +0200

Without this, coreutils (with latest gnulib) would fail to
build when configured --enable-gcc-warnings:

>From a406aaff57bc75a3410208e1abc7e86b0578c47c Mon Sep 17 00:00:00 2001
From: Jim Meyering <address@hidden>
Date: Fri, 8 Jul 2011 23:17:36 +0200
Subject: [PATCH] test-getopt.h: avoid warning about an unused variable

* tests/test-getopt.h (test_getopt): Remove unused variable, "c".
---
 ChangeLog           |    5 +++++
 tests/test-getopt.h |    1 -
 2 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 70c46a4..e3ea55f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2011-07-08  Jim Meyering  <address@hidden>
+
+       test-getopt.h: avoid warning about an unused variable
+       * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
+
 2011-07-07  Jim Meyering  <address@hidden>

        maint: reduce list of files exempt from sc_prohibit_leading_TABs
diff --git a/tests/test-getopt.h b/tests/test-getopt.h
index e3fc589..f7b3911 100644
--- a/tests/test-getopt.h
+++ b/tests/test-getopt.h
@@ -1375,7 +1375,6 @@ test_getopt (void)
     {
       int argc = 0;
       const char *argv[10];
-      int c;
       int pos = ftell (stderr);

       argv[argc++] = "program";
--
1.7.6.430.g34be2



reply via email to

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