Hi,
Some applications use -pedantic option at compiling with gcc.
But, avifile header files is not supported.
Please apply this patch.
enum {
val1,
val2,
};
|
v
enum {
val1,
val2
};
^
Regards,
---
Yuya.Nishida.
http://www.j96.org/~yuya/
[EMAIL PROTECTED]
Index: include/avifile.h
===================================================================
RCS file: /cvsroot/avifile/avifile-0.6/include/avifile.h,v
retrieving revision 1.72
diff -u -r1.72 avifile.h
--- include/avifile.h 10 Mar 2004 09:52:46 -0000 1.72
+++ include/avifile.h 15 Jun 2004 09:23:33 -0000
@@ -307,7 +307,7 @@
IGNORE_HEADER = 2,
// do not create precaching thread
- NO_THREAD = (1 << 31),
+ NO_THREAD = (1 << 31)
};
virtual ~IReadFile();
virtual uint_t StreamCount() =0;
Index: include/aviplay.h
===================================================================
RCS file: /cvsroot/avifile/avifile-0.6/include/aviplay.h,v
retrieving revision 1.55
diff -u -r1.55 aviplay.h
--- include/aviplay.h 19 Feb 2004 10:55:28 -0000 1.55
+++ include/aviplay.h 15 Jun 2004 09:23:33 -0000
@@ -128,10 +128,10 @@
QUERY_SUBTITLE_RENDERERS,
QUERY_VIDEO_WIDTH, // int
QUERY_VIDEO_HEIGHT, // int
- QUERY_EOF, // bool
+ QUERY_EOF // bool
#ifdef AVM_COMPATIBLE
// backward compatible
- DEFAULT_AUDIO_STREAM = AUDIO_STREAM,
+ , DEFAULT_AUDIO_STREAM = AUDIO_STREAM
#endif
};
Index: include/avm_args.h
===================================================================
RCS file: /cvsroot/avifile/avifile-0.6/include/avm_args.h,v
retrieving revision 1.4
diff -u -r1.4 avm_args.h
--- include/avm_args.h 7 Jan 2003 14:43:02 -0000 1.4
+++ include/avm_args.h 15 Jun 2004 09:23:33 -0000
@@ -29,7 +29,7 @@
REGINT = REG | INT,
REGSTRING = REG | STRING,
- ARRAY = 256, // array marks usage of register value
+ ARRAY = 256 // array marks usage of register value
} type;
const char* oshort; // short option name (NULL - no short opt)
const char* olong; // long option name (NULL - no long opt)
Index: include/formats.h
===================================================================
RCS file: /cvsroot/avifile/avifile-0.6/include/formats.h,v
retrieving revision 1.41
diff -u -r1.41 formats.h
--- include/formats.h 1 Mar 2004 14:23:48 -0000 1.41
+++ include/formats.h 15 Jun 2004 09:23:33 -0000
@@ -35,7 +35,7 @@
BI_RGB = 0,
BI_RLE8 = 1,
BI_RLE4 = 2,
- BI_BITFIELDS = 3,
+ BI_BITFIELDS = 3
//BI_JPEG = XXXX
};
Index: include/infotypes.h
===================================================================
RCS file: /cvsroot/avifile/avifile-0.6/include/infotypes.h,v
retrieving revision 1.45
diff -u -r1.45 infotypes.h
--- include/infotypes.h 26 May 2003 08:01:41 -0000 1.45
+++ include/infotypes.h 15 Jun 2004 09:23:33 -0000
@@ -37,7 +37,7 @@
/// value can have one of several string values from 'options'.
Select,
/// floating point number limited by i_min and i_max (if i_min < i_max), or
unlimited.
- Float,
+ Float
};
Kind kind;
union {
Index: include/playerwidget.h
===================================================================
RCS file: /cvsroot/avifile/avifile-0.6/include/playerwidget.h,v
retrieving revision 1.7
diff -u -r1.7 playerwidget.h
--- include/playerwidget.h 16 Oct 2002 08:06:00 -0000 1.7
+++ include/playerwidget.h 15 Jun 2004 09:23:33 -0000
@@ -27,7 +27,7 @@
// mouse actions
A_MOUSE_LEFT, A_MOUSE_MIDDLE, A_MOUSE_RIGHT,
- A_MOUSE_WHEEL_UP, A_MOUSE_WHEEL_DOWN,
+ A_MOUSE_WHEEL_UP, A_MOUSE_WHEEL_DOWN
};
// status of keyboard or other potentical modifiers
@@ -50,7 +50,7 @@
M_CTRL = M_LCTRL | M_RCTRL,
M_SHIFT = M_LSHIFT | M_RSHIFT,
M_ALT = M_LALT | M_RALT,
- M_META = M_LMETA | M_RMETA,
+ M_META = M_LMETA | M_RMETA
};
// will be removed
Index: include/videodecoder.h
===================================================================
RCS file: /cvsroot/avifile/avifile-0.6/include/videodecoder.h,v
retrieving revision 1.70
diff -u -r1.70 videodecoder.h
--- include/videodecoder.h 5 Dec 2002 20:30:43 -0000 1.70
+++ include/videodecoder.h 15 Jun 2004 09:23:33 -0000
@@ -80,7 +80,7 @@
// this also mean codec will properly handly strides
// IT'S FOR PRIVATE USAGE and will be changed
CAP_ALIGN64 = 1 << 30,
- CAP_ALIGN16 = 1 << 31,
+ CAP_ALIGN16 = 1 << 31
};
IVideoDecoder(const CodecInfo& info, const BITMAPINFOHEADER& format);
Index: include/videoencoder.h
===================================================================
RCS file: /cvsroot/avifile/avifile-0.6/include/videoencoder.h,v
retrieving revision 1.22
diff -u -r1.22 videoencoder.h
--- include/videoencoder.h 19 May 2003 07:34:53 -0000 1.22
+++ include/videoencoder.h 15 Jun 2004 09:23:33 -0000
@@ -51,7 +51,7 @@
CAP_YVYU = 8,
// planar
CAP_YV12 = 128,
- CAP_I420 = 256,
+ CAP_I420 = 256
};
IVideoEncoder(const CodecInfo& info);