This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Remove unused variable in linux/getcwd.c


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]