use UNUSED(x) not 'x = x'

This commit is contained in:
Mark Andrews 2011-07-27 07:09:50 +00:00
parent e240fa5522
commit 7da11f69d4
2 changed files with 17 additions and 14 deletions

View file

@ -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 <config.h>
@ -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) {

View file

@ -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 <config.h>
@ -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);