Remove unused variable in linux/getcwd.c

Andreas Jaeger aj@suse.de
Mon May 14 14:28:00 GMT 2012


After Joseph's change, I spotted a new warning on Linux/x86-64 - fixed
wit the appended patch, committed as obvious,

Andreas

 2012-05-14  Andreas Jaeger  <aj@suse.de>

         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
         variable.

diff --git a/sysdeps/unix/sysv/linux/getcwd.c b/sysdeps/unix/sysv/linux/getcwd.c
index 8f88480..52dd975 100644
--- a/sysdeps/unix/sysv/linux/getcwd.c
+++ b/sysdeps/unix/sysv/linux/getcwd.c
@@ -49,7 +49,6 @@ char *
 __getcwd (char *buf, size_t size)
 {
   char *path;
-  int n;
   char *result;
 
 #ifndef NO_ALLOCATION


-- 
 Andreas Jaeger aj@{suse.com,opensuse.org} Twitter/Identica: jaegerandi
  SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
   GF: Jeff Hawn,Jennifer Guild,Felix Imendörffer,HRB16746 (AG Nürnberg)
    GPG fingerprint = 93A3 365E CE47 B889 DF7F  FED1 389A 563C C272 A126



More information about the Libc-alpha mailing list