From 604a596b5f97f09f6a4de67fe2f076d3c939df33 Mon Sep 17 00:00:00 2001 From: David Lawrence Date: Wed, 24 May 2000 02:39:01 +0000 Subject: [PATCH] added an UNUSED() to shut up the irix compiler. --- lib/isc/unix/time.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/lib/isc/unix/time.c b/lib/isc/unix/time.c index 4466d0234b..810d29b0bc 100644 --- a/lib/isc/unix/time.c +++ b/lib/isc/unix/time.c @@ -353,8 +353,16 @@ isc_time_secondsastimet(isc_time_t *t, time_t *secondsp) { if (sizeof(time_t) == sizeof(isc_uint32_t) && /* Same size. */ (time_t)0.5 != 0.5 && /* Not a floating point type. */ (i = (time_t)-1) != 4294967295u && /* Is signed. */ - (seconds & (1 << (sizeof(time_t) * 8 - 1))) != 0) /* Negative. */ + (seconds & (1 << (sizeof(time_t) * 8 - 1))) != 0) { /* Negative. */ + /* + * This is here to shut up the IRIX compiler: + * variable "i" was set but never used + * when the value of i *was* used in the third test. + * (Let's hope the compiler got the actual test right.) + */ + UNUSED(i); return (ISC_R_RANGE); + } *secondsp = seconds;