From: Mark Andrews Date: Wed, 27 Jul 2011 07:09:50 +0000 (+0000) Subject: use UNUSED(x) not 'x = x' X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7da11f69d441f62087cb64a8f31995044b17a797;p=thirdparty%2Fbind9.git use UNUSED(x) not 'x = x' --- diff --git a/bin/tests/tasks/t_tasks.c b/bin/tests/tasks/t_tasks.c index a94dbd58994..bb73110ebfa 100644 --- a/bin/tests/tasks/t_tasks.c +++ b/bin/tests/tasks/t_tasks.c @@ -15,7 +15,7 @@ * PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: t_tasks.c,v 1.32.18.8 2009/01/22 23:46:00 tbox Exp $ */ +/* $Id: t_tasks.c,v 1.32.18.9 2011/07/27 07:09:50 marka Exp $ */ #include @@ -68,6 +68,7 @@ t1_callback(isc_task_t *task, isc_event_t *event) { static void t1_shutdown(isc_task_t *task, isc_event_t *event) { + UNUSED(task); t_info("shutdown %s\n", (char *)event->ev_arg); @@ -76,6 +77,7 @@ t1_shutdown(isc_task_t *task, isc_event_t *event) { static void my_tick(isc_task_t *task, isc_event_t *event) { + UNUSED(task); t_info("%s\n", (char *)event->ev_arg); @@ -400,7 +402,7 @@ t2_shutdown(isc_task_t *task, isc_event_t *event) { isc_result_t isc_result; - task = task; /* notused */ + UNUSED(task); if (event->ev_arg != NULL) { isc_task_destroy((isc_task_t**) &event->ev_arg); @@ -594,7 +596,8 @@ static int T3_nprobs; static void t3_sde1(isc_task_t *task, isc_event_t *event) { - task = task; + + UNUSED(task); if (T3_nevents != T3_NEVENTS) { t_info("Some events were not processed\n"); @@ -612,7 +615,7 @@ t3_sde1(isc_task_t *task, isc_event_t *event) { static void t3_sde2(isc_task_t *task, isc_event_t *event) { - task = task; + UNUSED(task); if (T3_nevents != T3_NEVENTS) { t_info("Some events were not processed\n"); @@ -631,7 +634,7 @@ static void t3_event1(isc_task_t *task, isc_event_t *event) { isc_result_t isc_result; - task = task; + UNUSED(task); isc_result = isc_mutex_lock(&T3_mx); if (isc_result != ISC_R_SUCCESS) { @@ -654,7 +657,7 @@ t3_event1(isc_task_t *task, isc_event_t *event) { static void t3_event2(isc_task_t *task, isc_event_t *event) { - task = task; + UNUSED(task); ++T3_nevents; isc_event_free(&event); @@ -1274,7 +1277,7 @@ static void t10_event1(isc_task_t *task, isc_event_t *event) { isc_result_t isc_result; - task = task; + UNUSED(task); isc_result = isc_mutex_lock(&T10_mx); if (isc_result != ISC_R_SUCCESS) { @@ -1309,7 +1312,7 @@ t10_event2(isc_task_t *task, isc_event_t *event) { int type_match; int tag_match; - task = task; + UNUSED(task); sender_match = 0; type_match = 0; @@ -1365,7 +1368,7 @@ static void t10_sde(isc_task_t *task, isc_event_t *event) { isc_result_t isc_result; - task = task; + UNUSED(task); isc_result = isc_mutex_lock(&T10_mx); if (isc_result != ISC_R_SUCCESS) { @@ -1732,7 +1735,7 @@ static void t11_event1(isc_task_t *task, isc_event_t *event) { isc_result_t isc_result; - task = task; + UNUSED(task); isc_result = isc_mutex_lock(&T11_mx); if (isc_result != ISC_R_SUCCESS) { diff --git a/bin/tests/timers/t_timers.c b/bin/tests/timers/t_timers.c index e59e3932dfa..590c8bab679 100644 --- a/bin/tests/timers/t_timers.c +++ b/bin/tests/timers/t_timers.c @@ -15,7 +15,7 @@ * PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: t_timers.c,v 1.23.18.5 2009/01/22 23:46:00 tbox Exp $ */ +/* $Id: t_timers.c,v 1.23.18.6 2011/07/27 07:04:55 marka Exp $ */ #include @@ -63,8 +63,8 @@ static void tx_sde(isc_task_t *task, isc_event_t *event) { isc_result_t isc_result; - task = task; - event = event; + UNUSED(task); + UNUSED(event); /* * Signal shutdown processing complete. @@ -776,7 +776,7 @@ t5_tick_event(isc_task_t *task, isc_event_t *event) { isc_time_t expires; isc_interval_t interval; - task = task; + UNUSED(task); ++T5_eventcnt; t_info("t5_tick_event %d\n", T5_eventcnt);