Mark string functions unused, in case the header is included in files that only use one of them.

main
theraven 16 years ago
parent 7b8b3839df
commit 96de597b3c

@ -4,6 +4,7 @@
/** /**
* Efficient string hash function. * Efficient string hash function.
*/ */
__attribute__((unused))
static uint32_t string_hash(const char *str) static uint32_t string_hash(const char *str)
{ {
uint32_t hash = 0; uint32_t hash = 0;
@ -18,6 +19,7 @@ static uint32_t string_hash(const char *str)
/** /**
* Test two strings for equality. * Test two strings for equality.
*/ */
__attribute__((unused))
static int string_compare(const char *str1, const char *str2) static int string_compare(const char *str1, const char *str2)
{ {
if (str1 == str2) if (str1 == str2)

Loading…
Cancel
Save