apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bo...@apache.org
Subject svn commit: r1154885 - in /apr/apr-util/branches/1.3.x: CHANGES build/apu-conf.m4
Date Mon, 08 Aug 2011 09:18:41 GMT
Author: bojan
Date: Mon Aug  8 09:18:41 2011
New Revision: 1154885

URL: http://svn.apache.org/viewvc?rev=1154885&view=rev
Log:
Avoid compiler warning in ldap_set_rebind_proc() test.
It seems that GCC 4.6 understands that tmp was really never used.

Modified:
    apr/apr-util/branches/1.3.x/CHANGES
    apr/apr-util/branches/1.3.x/build/apu-conf.m4

Modified: apr/apr-util/branches/1.3.x/CHANGES
URL: http://svn.apache.org/viewvc/apr/apr-util/branches/1.3.x/CHANGES?rev=1154885&r1=1154884&r2=1154885&view=diff
==============================================================================
--- apr/apr-util/branches/1.3.x/CHANGES [utf-8] (original)
+++ apr/apr-util/branches/1.3.x/CHANGES [utf-8] Mon Aug  8 09:18:41 2011
@@ -8,6 +8,9 @@ Changes with APR-util 1.3.13
 
   *) Sync libtool handling of bundled expat from APR.  [Rainer Jung]
 
+  *) Avoid compiler warning in ldap_set_rebind_proc() test.
+     [Bojan Smojver]
+
 Changes with APR-util 1.3.12
 
   *) apr_ldap: Fix crash because of NULL cleanup registered by

Modified: apr/apr-util/branches/1.3.x/build/apu-conf.m4
URL: http://svn.apache.org/viewvc/apr/apr-util/branches/1.3.x/build/apu-conf.m4?rev=1154885&r1=1154884&r2=1154885&view=diff
==============================================================================
--- apr/apr-util/branches/1.3.x/build/apu-conf.m4 (original)
+++ apr/apr-util/branches/1.3.x/build/apu-conf.m4 Mon Aug  8 09:18:41 2011
@@ -391,9 +391,7 @@ if test "$apu_has_ldap_openldap" = "1"; 
     #include <ldap.h>
     #endif
     ], [
-    int tmp = ldap_set_rebind_proc((LDAP *)0, (LDAP_REBIND_PROC *)0, (void *)0);
-    /* use tmp to suppress the warning */
-    tmp=0;
+    ldap_set_rebind_proc((LDAP *)0, (LDAP_REBIND_PROC *)0, (void *)0);
     ], ac_cv_ldap_set_rebind_proc_style=three, ac_cv_ldap_set_rebind_proc_style=two))
 
     if test "$ac_cv_ldap_set_rebind_proc_style" = "three"; then



Mime
View raw message