When compiled with -Wextra, a warning concerning the comparison of integers with different signs is caused in function TrivialHash. Changing the type of the index variable i to size_t fixes this.
@@ -8,7 +8,7 @@
unsigned int TrivialHash(const char *s, size_t len)
{
unsigned int h = 0;
- int i;
+ size_t i;
for (i=0; i < len; ++i) {
h += (unsigned char)s[i];
}