[xiph-commits] r3471 - in liboggplay/trunk: . src/tests src/tools

johnf at svn.annodex.net johnf at svn.annodex.net
Sat Feb 16 03:00:48 PST 2008


Author: johnf
Date: 2008-02-16 03:00:47 -0800 (Sat, 16 Feb 2008)
New Revision: 3471

Modified:
   liboggplay/trunk/Makefile.am
   liboggplay/trunk/configure.ac
   liboggplay/trunk/src/tests/noop.c
   liboggplay/trunk/src/tools/dump-first-frame.c
Log:
Add gcc werrror to make dist

Modified: liboggplay/trunk/Makefile.am
===================================================================
--- liboggplay/trunk/Makefile.am	2008-02-15 08:53:44 UTC (rev 3470)
+++ liboggplay/trunk/Makefile.am	2008-02-16 11:00:47 UTC (rev 3471)
@@ -32,6 +32,8 @@
 
 AUTOMAKE_OPTIONS = foreign
 
+DISTCHECK_CONFIGURE_FLAGS = --enable-gcc-werror
+
 SUBDIRS = include src
 
 pkgconfigdir = $(libdir)/pkgconfig

Modified: liboggplay/trunk/configure.ac
===================================================================
--- liboggplay/trunk/configure.ac	2008-02-15 08:53:44 UTC (rev 3470)
+++ liboggplay/trunk/configure.ac	2008-02-16 11:00:47 UTC (rev 3471)
@@ -55,6 +55,18 @@
 oggplay_glut=""
 
 dnl
+dnl  Configuration option to add -Werror to all Makefiles
+dnl
+
+AC_ARG_ENABLE(gcc-werror,
+     AC_HELP_STRING([--enable-gcc-werror], [enable -Werror in all Makefiles]),
+     [ ac_enable_gcc_werror=yes ], [ ac_enable_gcc_werror=no] )
+
+if test "x${ac_enable_gcc_werror}" = xyes ; then
+  CFLAGS="-Werror $CFLAGS"
+fi
+
+dnl
 dnl Configure for target platform
 dnl
 

Modified: liboggplay/trunk/src/tests/noop.c
===================================================================
--- liboggplay/trunk/src/tests/noop.c	2008-02-15 08:53:44 UTC (rev 3470)
+++ liboggplay/trunk/src/tests/noop.c	2008-02-16 11:00:47 UTC (rev 3471)
@@ -8,8 +8,8 @@
 
 int
 main (int argc, char * argv[]) {
+/*
   OggPlayReader * reader;
-/*
   OggPlay       * player;
   OggPlayErrorCode err;
 */

Modified: liboggplay/trunk/src/tools/dump-first-frame.c
===================================================================
--- liboggplay/trunk/src/tools/dump-first-frame.c	2008-02-15 08:53:44 UTC (rev 3470)
+++ liboggplay/trunk/src/tools/dump-first-frame.c	2008-02-16 11:00:47 UTC (rev 3471)
@@ -132,11 +132,11 @@
                        OggPlayCallbackInfo **track_info, void *user) {
 
   int                   i;
-  int                   j;
+  //int                   j;
   OggPlayDataHeader  ** headers;
   OggPlayVideoData    * video_data;
-  OggPlayAudioData    * audio_data;
-  int                   required;
+  //OggPlayAudioData    * audio_data;
+  //int                   required;
   OggPlayDataType       type;
 
   for (i = 0; i < num_tracks; i++) {



More information about the commits mailing list