chiark / gitweb /
MurmurHash3: actually inline functions
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sun, 14 Apr 2013 17:11:06 +0000 (13:11 -0400)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sun, 14 Apr 2013 17:11:06 +0000 (13:11 -0400)
"__attribute__((always_inline))" does not replace "inline" and they
still need to be used together. This fixes "always_inline function
might not be inlinable [-Wattributes]" warning in gcc 4.7

Idea-from-patch-by: Siarhei Siamashka <siarhei.siamashka@gmail.com>
src/shared/MurmurHash3.c

index dc56f6b0fb47f1f44e89c6fdfcff4e137e9c6ce4..aa1387373fc14a8a37f14906728aaca43406439d 100644 (file)
@@ -29,7 +29,7 @@
 
 #else  // defined(_MSC_VER)
 
-#define        FORCE_INLINE __attribute__((always_inline))
+#define        FORCE_INLINE inline __attribute__((always_inline))
 
 static inline uint32_t rotl32 ( uint32_t x, int8_t r )
 {