From: Ben Pfaff Date: Thu, 10 Nov 2011 05:16:19 +0000 (-0800) Subject: hmap: Mark definition of hmap_node_hash() "static inline". X-Git-Tag: v0.7.9~96 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?p=pspp-builds.git;a=commitdiff_plain;h=4b938f84aa68af17d5f7487523ad2a478abb7b6d hmap: Mark definition of hmap_node_hash() "static inline". This suppresses a Clang warning. The prototype earlier in the file was already marked "static inline", so I don't think that this is a functional change. Reported-by: Jeremy Lavergne --- diff --git a/src/libpspp/hmap.h b/src/libpspp/hmap.h index 2776c6c8..c3cf62fa 100644 --- a/src/libpspp/hmap.h +++ b/src/libpspp/hmap.h @@ -248,7 +248,7 @@ static inline struct hmap_node *hmap_first_nonempty_bucket__ ( static inline size_t hmap_mask_to_capacity__ (size_t mask); /* Returns the hash value associated with NODE. */ -size_t +static inline size_t hmap_node_hash (const struct hmap_node *node) { return node->hash;