libtool-patches
[Top][All Lists]
Advanced

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

unused variable in chase_symlinks


From: Eric Blake
Subject: unused variable in chase_symlinks
Date: Sun, 22 Jul 2007 16:44:29 -0600
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.5) Gecko/20070716 Thunderbird/2.0.0.5 Mnenhy/0.7.5.666

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On cygwin, I'm getting a lot of these warnings (on CVS head M4, one for
each of the 42 gnulib tests):

 creating test-isnanl-nolibm.exe
./.libs/lt-test-isnanl-nolibm.c: In function `chase_symlinks':
./.libs/lt-test-isnanl-nolibm.c:499: warning: unused variable `rv'

due to unused code being generated by libtool.  OK to commit?  Also,
ltmain.m4sh has a lot of whitespace problems (space-tab and end-of-line
whitespace) that emacs flagged, is it okay to fix that in a separate commit?

2007-07-22  Eric Blake  <address@hidden>

        * libltdl/config/ltmain.m4sh (func_emit_cwrapperexe_src:
        chase_symlinks): Avoid compiler warning.

- --
Don't work too hard, make some time for fun as well!

Eric Blake             address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGo93M84KuGfSFAYARAr0RAJ9xrjGvLQlfgdYZrDx6GWU4mfs/rACZAVMY
Fc8FYsedE0Ud3mhEt5cug64=
=cPsR
-----END PGP SIGNATURE-----
Index: libltdl/config/ltmain.m4sh
===================================================================
RCS file: /sources/libtool/libtool/libltdl/config/ltmain.m4sh,v
retrieving revision 1.86
diff -u -p -r1.86 ltmain.m4sh
--- libltdl/config/ltmain.m4sh  22 Jul 2007 17:57:10 -0000      1.86
+++ libltdl/config/ltmain.m4sh  22 Jul 2007 22:41:37 -0000
@@ -2959,7 +2959,6 @@ chase_symlinks (const char *pathspec)
 #else
   char buf[LT_PATHMAX];
   struct stat s;
-  int rv = 0;
   char *tmp_pathspec = xstrdup (pathspec);
   char *p;
   int has_symlinks = 0;
@@ -7359,4 +7358,3 @@ build_old_libs=`case $build_libtool_libs
 # End:
 # vi:sw=2
 ]])
-

reply via email to

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