> case APR_LDAP_OPT_REFERRALS: { > > - void *refs = invalue->refs ? LDAP_OPT_ON : LDAP_OPT_OFF; > > + void *refs = invalue->refs ? (void *)LDAP_OPT_ON : (void > *)LDAP_OPT_OFF;
> Seems the params are either zero or NULL, alternatively not-zero or not-NULL. > As a result the cast gives this effect on all toolkits. No warnings this way.