Commit 73c1a7e0 authored by Mark Andrews's avatar Mark Andrews
Browse files

fix cppcheck warnings: unreadVariable

parent 875776e5
......@@ -2292,7 +2292,7 @@ dns_zone_asyncload2(dns_zone_t *zone, dns_zt_zoneloaded_t done, void * arg,
isc_task_send(zone->loadtask, &e);
UNLOCK_ZONE(zone);
return (ISC_R_SUCCESS);
return (result);
failure:
if (asl != NULL)
......
......@@ -2557,7 +2557,7 @@ isc_mem_renderxml(xmlTextWriterPtr writer) {
static isc_result_t
json_renderctx(isc__mem_t *ctx, summarystat_t *summary, json_object *array) {
isc_result_t result = ISC_R_FAILURE;
isc_result_t result = ISC_R_SUCCESS;
json_object *ctxobj, *obj;
char buf[1024];
......@@ -2639,7 +2639,7 @@ json_renderctx(isc__mem_t *ctx, summarystat_t *summary, json_object *array) {
MCTXUNLOCK(ctx, &ctx->lock);
json_object_array_add(array, ctxobj);
return (ISC_R_SUCCESS);
return (result);
error:
MCTXUNLOCK(ctx, &ctx->lock);
......@@ -2696,7 +2696,7 @@ isc_mem_renderjson(json_object *memobj) {
json_object_object_add(memobj, "Lost", obj);
json_object_object_add(memobj, "contexts", ctxarray);
return (ISC_R_SUCCESS);
return (result);
error:
if (ctxarray != NULL)
......
......@@ -1393,6 +1393,7 @@ pk11_dump_tokens(void) {
if (!first)
printf(",");
first = false;
UNUSED(first);
printf("AES");
}
printf(")\n");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment