Hi;

Gcc now correctly warns for set but unused
variables(-Wunused-but-set-variable) and this causes a compile error
while detecting
ldap_set_rebind_proc argument count because the tmp variable is set but
unused. Attached patch fixes this by simply using (void)tmp; to make gcc
happy.

Regards,
ismail
Index: build/apu-conf.m4
===================================================================
--- build/apu-conf.m4	(revision 1098540)
+++ build/apu-conf.m4	(working copy)
@@ -257,8 +257,8 @@
     #endif
     ], [
     int tmp = ldap_set_rebind_proc((LDAP *)0, (LDAP_REBIND_PROC *)0, (void *)0);
-    /* use tmp to suppress the warning */
-    tmp=0;
+    /* Suppress unused warning */
+    (void)tmp;
     ], 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

Reply via email to