From b60400b03863c2a1338ee543286129ae7b174749 Mon Sep 17 00:00:00 2001 From: Michael Roitzsch Date: Sun, 16 Nov 2003 15:31:05 +0000 Subject: defining "inline" not to "__attribute__ ((__always_inline__))", but to "inline __attribute__ ((__always_inline__))" should have the same effect, but my gcc 3.3.1 emits much fewer warnings with the latter (That is because static inline functions for example in ffmpeg are implemented in the header, but not used in every file that includes this header. Now gcc reports unused static functions with a "defined but not used" warning unless they are static inline. The former define would have dropped the inline and therefore triggers those warnings.) CVS patchset: 5749 CVS date: 2003/11/16 15:31:05 --- m4/_xine.m4 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/m4/_xine.m4 b/m4/_xine.m4 index 41a6c8a95..0ef737fd4 100644 --- a/m4/_xine.m4 +++ b/m4/_xine.m4 @@ -8,12 +8,12 @@ AC_DEFUN([AC_C_ALWAYS_INLINE], AC_MSG_CHECKING([for always_inline]) SAVE_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -Wall -Werror" - AC_TRY_COMPILE([],[__attribute__ ((__always_inline__)) void f (void);], + AC_TRY_COMPILE([],[inline __attribute__ ((__always_inline__)) void f (void);], [ac_cv_always_inline=yes],[ac_cv_always_inline=no]) CFLAGS="$SAVE_CFLAGS" AC_MSG_RESULT([$ac_cv_always_inline]) if test x"$ac_cv_always_inline" = x"yes"; then - AC_DEFINE_UNQUOTED([inline],[__attribute__ ((__always_inline__))]) + AC_DEFINE_UNQUOTED([inline],[inline __attribute__ ((__always_inline__))]) fi fi]) -- cgit v1.2.3