You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by tr...@apache.org on 2009/02/27 01:39:14 UTC

svn commit: r748361 - /apr/apr/trunk/file_io/unix/filedup.c

Author: trawick
Date: Fri Feb 27 00:39:14 2009
New Revision: 748361

URL: http://svn.apache.org/viewvc?rev=748361&view=rev
Log:
fix unused variable warning for builds without HAVE_DUP3

Modified:
    apr/apr/trunk/file_io/unix/filedup.c

Modified: apr/apr/trunk/file_io/unix/filedup.c
URL: http://svn.apache.org/viewvc/apr/apr/trunk/file_io/unix/filedup.c?rev=748361&r1=748360&r2=748361&view=diff
==============================================================================
--- apr/apr/trunk/file_io/unix/filedup.c (original)
+++ apr/apr/trunk/file_io/unix/filedup.c Fri Feb 27 00:39:14 2009
@@ -24,7 +24,10 @@
                              apr_file_t *old_file, apr_pool_t *p,
                              int which_dup)
 {
-    int rv, flags = 0;
+    int rv;
+#ifdef HAVE_DUP3
+    int flags = 0;
+#endif
     
     if (which_dup == 2) {
         if ((*new_file) == NULL) {



Re: svn commit: r748361 - /apr/apr/trunk/file_io/unix/filedup.c

Posted by Bojan Smojver <bo...@rexursive.com>.
On Fri, 2009-02-27 at 00:39 +0000, trawick@apache.org wrote:

> fix unused variable warning for builds without HAVE_DUP3

Thanks!

-- 
Bojan