From 19ca4d0f8caabe42bfe68a3d7d612fec6ebe061b Mon Sep 17 00:00:00 2001 From: ckolivas Date: Thu, 29 Jan 2015 09:06:01 +1100 Subject: [PATCH] Silence unused warning --- src/ckpool.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ckpool.h b/src/ckpool.h index 891d21ef..46af036f 100644 --- a/src/ckpool.h +++ b/src/ckpool.h @@ -187,7 +187,7 @@ struct ckpool_instance { #ifdef USE_CKDB #define CKP_STANDALONE(CKP) ((CKP)->standalone == true) #else -#define CKP_STANDALONE(CKP) (true) +#define CKP_STANDALONE(CKP) ((CKP) == (CKP)) /* Always true, silences unused warn */ #endif #define SAFE_HASH_OVERHEAD(HASHLIST) (HASHLIST ? HASH_OVERHEAD(hh, HASHLIST) : 0)