diff options
| author | Tyge Løvset <[email protected]> | 2021-09-19 13:49:41 +0200 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2021-09-19 13:49:41 +0200 |
| commit | 8da81e7a625f06ec667793ff624c6876d03abbde (patch) | |
| tree | f1c09759a45b42fdff374b9bde009a9356dffe29 /include | |
| parent | 58b2831a7287cb00d14a221a9d0263fb0c427675 (diff) | |
| download | STC-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.h | 3 |
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)
|
