summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2021-09-19 13:49:41 +0200
committerTyge Løvset <[email protected]>2021-09-19 13:49:41 +0200
commit8da81e7a625f06ec667793ff624c6876d03abbde (patch)
treef1c09759a45b42fdff374b9bde009a9356dffe29 /include
parent58b2831a7287cb00d14a221a9d0263fb0c427675 (diff)
downloadSTC-modified-8da81e7a625f06ec667793ff624c6876d03abbde.tar.gz
STC-modified-8da81e7a625f06ec667793ff624c6876d03abbde.zip
Fixed errors caused by gcc -std=c99 -pedantic.
Diffstat (limited to 'include')
-rw-r--r--include/stc/ccommon.h3
1 files changed, 2 insertions, 1 deletions
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)