summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Roitzsch <mroi@users.sourceforge.net>2003-11-16 15:31:05 +0000
committerMichael Roitzsch <mroi@users.sourceforge.net>2003-11-16 15:31:05 +0000
commitb60400b03863c2a1338ee543286129ae7b174749 (patch)
tree05fbed4ad317176188d97d3bd32d2cc5faef32a1
parent56c8f7c982db3532a37d983300a775a414ebaae0 (diff)
downloadxine-lib-b60400b03863c2a1338ee543286129ae7b174749.tar.gz
xine-lib-b60400b03863c2a1338ee543286129ae7b174749.tar.bz2
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
-rw-r--r--m4/_xine.m44
1 files 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])