From 3949fc812a7d516137ac211e928d1d7f61e1fc09 Mon Sep 17 00:00:00 2001 From: Alexander Date: Sun, 13 Aug 2017 16:33:36 +0300 Subject: [PATCH] avoid warning: always_inline function might not be inlinable --- libImaging/Filter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libImaging/Filter.c b/libImaging/Filter.c index 604a00c49..eb3293a23 100644 --- a/libImaging/Filter.c +++ b/libImaging/Filter.c @@ -97,7 +97,7 @@ ImagingExpand(Imaging imIn, int xmargin, int ymargin, int mode) See: http://stackoverflow.com/a/26588074/253146 */ #if defined(__x86_64__) && defined(__SSE__) && ! defined(__NO_INLINE__) && \ ! defined(__clang__) && defined(GCC_VERSION) && (GCC_VERSION < 40900) -static float __attribute__((always_inline)) i2f(int v) { +static float __attribute__((always_inline)) inline i2f(int v) { float x; __asm__("xorps %0, %0; cvtsi2ss %1, %0" : "=X"(x) : "r"(v) ); return x;