From 96de597b3c9491bb257526cb7ed817238c88916a Mon Sep 17 00:00:00 2001 From: theraven Date: Fri, 14 May 2010 11:19:04 +0000 Subject: [PATCH] Mark string functions unused, in case the header is included in files that only use one of them. --- string_hash.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/string_hash.h b/string_hash.h index a64071f..6d47cd8 100644 --- a/string_hash.h +++ b/string_hash.h @@ -4,6 +4,7 @@ /** * Efficient string hash function. */ +__attribute__((unused)) static uint32_t string_hash(const char *str) { uint32_t hash = 0; @@ -18,6 +19,7 @@ static uint32_t string_hash(const char *str) /** * Test two strings for equality. */ +__attribute__((unused)) static int string_compare(const char *str1, const char *str2) { if (str1 == str2)