From 8da81e7a625f06ec667793ff624c6876d03abbde Mon Sep 17 00:00:00 2001 From: Tyge Løvset Date: Sun, 19 Sep 2021 13:49:41 +0200 Subject: Fixed errors caused by gcc -std=c99 -pedantic. --- include/stc/ccommon.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/stc/ccommon.h b/include/stc/ccommon.h index a64bff40..d11f1b3f 100644 --- a/include/stc/ccommon.h +++ b/include/stc/ccommon.h @@ -102,7 +102,8 @@ #define c_rawstr_compare(x, y) strcmp(*(x), *(y)) #define c_rawstr_equals(x, y) (strcmp(*(x), *(y)) == 0) -#define c_rawstr_hash(p, ...) c_default_hash(*(p), strlen(*(p))) +#define c_rawstr_hash(p, dummy) c_default_hash(*(p), strlen(*(p))) +#define c_strhash(s) c_default_hash(s, strlen(s)) #define c_no_clone(x) (assert(!"c_no_clone() called"), x) #define c_default_fromraw(x) (x) -- cgit v1.2.3