[systemd-commits] src/shared

Zbigniew Jędrzejewski-Szmek zbyszek at kemper.freedesktop.org
Sun Apr 14 10:14:42 PDT 2013


 src/shared/MurmurHash3.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 4094bcbfacc78d2fadddefd8642aac2ae9464de6
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date:   Sun Apr 14 13:11:06 2013 -0400

    MurmurHash3: actually inline functions
    
    "__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 at gmail.com>

diff --git a/src/shared/MurmurHash3.c b/src/shared/MurmurHash3.c
index dc56f6b..aa13873 100644
--- a/src/shared/MurmurHash3.c
+++ b/src/shared/MurmurHash3.c
@@ -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 )
 {



More information about the systemd-commits mailing list