Re: [xf86-video-qxl warnings 5/6] Actually request the forcibly inline functions to be inline.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 03/21/2013 06:23 PM, Jeremy White wrote:
Silences a gcc warning (-Wattributes).

Signed-off-by: Jeremy White<jwhite@xxxxxxxxxxxxxxx>
---
  src/murmurhash3.c |    8 ++++----
  1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/murmurhash3.c b/src/murmurhash3.c
index afb7d7d..0df34a7 100644
--- a/src/murmurhash3.c
+++ b/src/murmurhash3.c
@@ -52,12 +52,12 @@ static inline uint64_t rotl64 ( uint64_t x, int8_t r )
  // Block read - if your platform needs to do endian-swapping or can only
  // handle aligned reads, do the conversion here

-static FORCE_INLINE uint32_t getblock_32 ( const uint32_t * p, int i )
+inline static FORCE_INLINE uint32_t getblock_32 ( const uint32_t * p, int i )

Hi,

So gcc is not happy with the FORCE_INLINE which translates into "__attribute__((always_inline)"
and requires an additional "inline" ?

Thanks,
    Uri.

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/spice-devel


[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]