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