Skip to content
Myr

stb_ds.h: fix unused parameter warning

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by hashitaku · committed by hashitaku · parent f54acd4 · Browse files · 1 file+8 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+8 added−0 removed

  • other:+8 added−0 removed

1 file+8 added−0 removed

modified:stb_ds.h+8 added
445 unmodified lines
446#define STBDS_REALLOC(c,p,s) realloc(p,s)447#define STBDS_FREE(c,p) free(p)448#endif449450#ifdef _MSC_VER451#define STBDS_NOTUSED(v) (void)(v)452#else453#define STBDS_NOTUSED(v) (void)sizeof(v)454#endif455456#ifdef __cplusplus457extern "C" {458#endif459
372 unmodified lines
832#define STBDS_SIZE_T_BITS ((sizeof (size_t)) * 8)833834static size_t stbds_probe_position(size_t hash, size_t slot_count, size_t slot_log2)835{836 STBDS_NOTUSED(slot_log2);837 size_t pos;838 pos = hash & (slot_count-1);839 #ifdef STBDS_INTERNAL_BUCKET_START840 pos &= ~STBDS_BUCKET_MASK;
331 unmodified lines
117211731174static int stbds_is_key_equal(void *a, size_t elemsize, void *key, size_t keysize, size_t keyoffset, int mode, size_t i)1175{1176 STBDS_NOTUSED(keyoffset);1177 if (mode >= STBDS_HM_STRING)1178 return 0==strcmp((char *) key, * (char **) ((char *) a + elemsize*i));1179 else1180 return 0==memcmp(key, (char *) a + elemsize*i, keysize);
656 unmodified lines