[MPlayer-dev-eng] [PATCH] trivial warning fix - bswap.h

Pierre Lombard p_l at gmx.fr
Fri May 5 10:40:04 CEST 2006


Hi,

The attached patch fix the warning generated (in gcc4) by the 'inline'
keyword position.

Please apply.
-- 
Pierre Lombard
GPG: 0x1AF0803C
-------------- next part --------------
Index: bswap.h
===================================================================
RCS file: /cvsroot/mplayer/main/bswap.h,v
retrieving revision 1.7
diff -u -r1.7 bswap.h
--- bswap.h	22 Feb 2006 10:30:55 -0000	1.7
+++ bswap.h	5 May 2006 08:38:23 -0000
@@ -117,21 +117,21 @@
 
 #endif	/* !HAVE_BYTESWAP_H */
 
-static float inline bswap_flt(float x) {
+static inline float bswap_flt(float x) {
   union {uint32_t i; float f;} u;
   u.f = x;
   u.i = bswap_32(u.i);
   return u.f;
 }
 
-static double inline bswap_dbl(double x) {
+static inline double bswap_dbl(double x) {
   union {uint64_t i; double d;} u;
   u.d = x;
   u.i = bswap_64(u.i);
   return u.d;
 }
 
-static long double inline bswap_ldbl(long double x) {
+static inline long double bswap_ldbl(long double x) {
   union {char d[10]; long double ld;} uin;
   union {char d[10]; long double ld;} uout;
   uin.ld = x;


More information about the MPlayer-dev-eng mailing list