Here is a small patch to move inline keywords to the front of function
declarations. This fixes some warnings with gcc and -Wextra where it
complains about the 'static' keyword not being at the beginning of a
function declaration. Apparently gcc gets tripped up and complains
about 'static' instead of 'inline', but hey, it's easy enough to fix.
Diego
Index: include/alpha_asm.h
===================================================================
--- include/alpha_asm.h (revision 1205)
+++ include/alpha_asm.h (working copy)
@@ -58,14 +58,14 @@
# define HAVE_CIX() (amask(AMASK_CIX) == 0)
#endif
-inline static uint64_t BYTE_VEC(uint64_t x)
+static inline uint64_t BYTE_VEC(uint64_t x)
{
x |= x << 8;
x |= x << 16;
x |= x << 32;
return x;
}
-inline static uint64_t WORD_VEC(uint64_t x)
+static inline uint64_t WORD_VEC(uint64_t x)
{
x |= x << 16;
x |= x << 32;
Index: libmpeg2/motion_comp_arm.c
===================================================================
--- libmpeg2/motion_comp_arm.c (revision 1205)
+++ libmpeg2/motion_comp_arm.c (working copy)
@@ -45,7 +45,7 @@
/* mc function template */
#define MC_FUNC(op,xy) \
-static void inline MC_##op##_##xy##_16_c (uint8_t * dest, const uint8_t * ref, \
+static inline void MC_##op##_##xy##_16_c (uint8_t * dest, const uint8_t * ref, \
const int stride, int height) \
{ \
do { \
------------------------------------------------------------------------------
RSA(R) Conference 2012
Mar 27 - Feb 2
Save $400 by Jan. 27
Register now!
http://p.sf.net/sfu/rsa-sfdev2dev2
_______________________________________________
Libmpeg2-devel mailing list
Libmpeg2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libmpeg2-devel