summaryrefslogtreecommitdiff
path: root/src/intset.c
diff options
context:
space:
mode:
authorsundb <sundbcn@gmail.com>2021-01-10 01:52:42 +0800
committerGitHub <noreply@github.com>2021-01-09 19:52:42 +0200
commit36f1dea5e19982fac81d44de5bb0a4febe456b06 (patch)
tree52d7dbd912896da125d18fb7862d862a2104e8f2 /src/intset.c
parent8dd16caec833aebde3a12c7d7f9b6456554c8616 (diff)
downloadredis-36f1dea5e19982fac81d44de5bb0a4febe456b06.tar.gz
Fix compile warning when define REDIS_TEST (#8261)
Co-authored-by: Oran Agra <oran@redislabs.com>
Diffstat (limited to 'src/intset.c')
-rw-r--r--src/intset.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/intset.c b/src/intset.c
index 54afae875..74de87acb 100644
--- a/src/intset.c
+++ b/src/intset.c
@@ -358,12 +358,6 @@ static long long usec(void) {
return (((long long)tv.tv_sec)*1000000)+tv.tv_usec;
}
-#define assert(_e) ((_e)?(void)0:(_assert(#_e,__FILE__,__LINE__),exit(1)))
-static void _assert(char *estr, char *file, int line) {
- printf("\n\n=== ASSERTION FAILED ===\n");
- printf("==> %s:%d '%s' is not true\n",file,line,estr);
-}
-
static intset *createSet(int bits, int size) {
uint64_t mask = (1<<bits)-1;
uint64_t value;