| |
@@ -56,7 +56,7 @@
|
| |
idview_get_overrides(struct backend_search_cbdata *cbdata)
|
| |
{
|
| |
char *dn = NULL;
|
| |
- int ret = 0, result = 0;
|
| |
+ int result = 0;
|
| |
const Slapi_DN *suffix = NULL;
|
| |
Slapi_PBlock *pb;
|
| |
|
| |
@@ -76,7 +76,7 @@
|
| |
slapi_search_internal_set_pb(pb, dn, LDAP_SCOPE_SUBTREE,
|
| |
"(objectclass=ipaOverrideAnchor)", NULL, 0,
|
| |
NULL, NULL, cbdata->state->plugin_identity, 0);
|
| |
- ret = slapi_search_internal_pb(pb);
|
| |
+ slapi_search_internal_pb(pb);
|
| |
slapi_ch_free_string(&dn);
|
| |
slapi_pblock_get(pb, SLAPI_PLUGIN_INTOP_RESULT, &result);
|
| |
|
| |
@@ -411,8 +411,6 @@
|
| |
{
|
| |
struct backend_search_filter_config config =
|
| |
{FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, NULL, NULL, NULL};
|
| |
- int res = 0;
|
| |
-
|
| |
if (cbdata->idview == NULL) {
|
| |
return;
|
| |
}
|
| |
@@ -421,7 +419,7 @@
|
| |
config.callback_data = cbdata;
|
| |
|
| |
/* Ignore the return code as it will always be SLAPI_FILTER_SCAN_NO_MORE */
|
| |
- res = backend_analyze_search_filter(cbdata->filter, &config);
|
| |
+ (void)backend_analyze_search_filter(cbdata->filter, &config);
|
| |
|
| |
if (config.name != NULL) {
|
| |
slapi_ch_free_string(&config.name);
|
| |
This is just a fix for some of the annoying compiler warnings.