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  <br...@clisp.org>

        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