bug-gnulib
[Top][All Lists]
Advanced

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

Re: [PATCH 4/4] Add a test suite for the sethostname module


From: Bruno Haible
Subject: Re: [PATCH 4/4] Add a test suite for the sethostname module
Date: Sat, 3 Dec 2011 15:14:37 +0100
User-agent: KMail/1.13.6 (Linux/2.6.37.6-0.5-desktop; KDE/4.6.0; x86_64; ; )

Ben Walton wrote:
> +  int rcg, rcs, i;

I'm getting a warning

test-sethostname.c: In function ‘main’:
test-sethostname.c:52:7: warning: unused variable ‘rcg’ [-Wunused-variable]

The fix is obvious.


2011-12-03  Bruno Haible  <address@hidden>

        sethostname tests: Avoid a gcc warning.
        * tests/test-sethostname.c (main): Remove an unused variable.

--- tests/test-sethostname.c.orig       Sat Dec  3 15:13:31 2011
+++ tests/test-sethostname.c    Sat Dec  3 15:05:32 2011
@@ -49,7 +49,7 @@
   char origname[HOST_NAME_MAX];
   char newname[HOST_NAME_MAX];
   char longname[HOST_NAME_MAX + 2];
-  int rcg, rcs, i;
+  int rcs, i;
 
   /* skip the tests if we don't have root privilege.  this does not
      consider things like CAP_SYS_ADMIN (linux) or PRIV_SYS_ADMIN
-- 
In memoriam Rudolf Slánský <http://en.wikipedia.org/wiki/Rudolf_Slánský>



reply via email to

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