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

Uri Lublin uril at redhat.com
Thu Mar 21 10:13:02 PDT 2013


On 03/21/2013 06:23 PM, Jeremy White wrote:
> Silences a gcc warning (-Wattributes).
>
> Signed-off-by: Jeremy White<jwhite at codeweavers.com>
> ---
>   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.



More information about the Spice-devel mailing list