From: Ben Pfaff Date: Wed, 21 Dec 2005 22:31:36 +0000 (+0000) Subject: Add cast to silence new warning in GCC 4.0. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3cfe54eca8def04c04b969773990ce45fd523f3e;p=pintos-anon Add cast to silence new warning in GCC 4.0. --- diff --git a/src/lib/kernel/hash.c b/src/lib/kernel/hash.c index 93813c0..3eda885 100644 --- a/src/lib/kernel/hash.c +++ b/src/lib/kernel/hash.c @@ -210,7 +210,7 @@ hash_bytes (const void *buf_, size_t size) unsigned hash_string (const char *s_) { - const unsigned char *s = s_; + const unsigned char *s = (const unsigned char *) s_; unsigned hash; ASSERT (s != NULL);