Mercurial > audlegacy-plugins
changeset 1973:f86cb7fc1d4f
Add -pipe -Wall if gcc and fix a few warnings.
author | Jonathan Schleifer <js@h3c.de> |
---|---|
date | Wed, 03 Oct 2007 17:24:59 +0200 |
parents | 2bd85ddedf9e |
children | bb4d19fa0ac4 5fa26178eaef |
files | buildsys.mk.in configure.ac src/OSS4/audio.c src/OSS4/configure.c src/alac/plugin.c src/metronom/metronom.c src/sid/xs_config.c src/vorbis/vorbis.c |
diffstat | 8 files changed, 14 insertions(+), 15 deletions(-) [+] |
line wrap: on
line diff
--- a/buildsys.mk.in Wed Oct 03 16:15:00 2007 +0200 +++ b/buildsys.mk.in Wed Oct 03 17:24:59 2007 +0200 @@ -106,7 +106,6 @@ if ${CPP} ${CPPFLAGS} -M $$list >.deps; then \ ${DEPEND_OK}; \ else \ - rm -f .deps; \ ${DEPEND_FAILED}; \ fi; \ fi; \ @@ -371,7 +370,7 @@ ${DIR_LEAVE}; \ done - for i in ${PROG} ${PROG_NOINST} ${LIB} ${LIB_NOINST} ${STATIC_LIB} ${STATIC_LIB_NOINST} ${PLUGIN} ${PLUGIN_NOINST} ${DISTCLEAN} *~; do \ + for i in ${PROG} ${PROG_NOINST} ${LIB} ${LIB_NOINST} ${STATIC_LIB} ${STATIC_LIB_NOINST} ${PLUGIN} ${PLUGIN_NOINST} ${DISTCLEAN} *~; do \ if test -f $$i -o -d $$i; then \ if rm -fr $$i; then \ ${DELETE_OK}; \
--- a/configure.ac Wed Oct 03 16:15:00 2007 +0200 +++ b/configure.ac Wed Oct 03 17:24:59 2007 +0200 @@ -41,6 +41,10 @@ AC_ISC_POSIX AC_C_BIGENDIAN +if test x"$GCC" = x"yes"; then + CFLAGS="$CFLAGS -pipe -Wall" + CXXFLAGS="$CXXFLAGS -pipe -Wall" +fi dnl Locate a program and check that its version is acceptable. dnl AC_PROG_CHECK_VER(var, namelist, version-switch,
--- a/src/OSS4/audio.c Wed Oct 03 16:15:00 2007 +0200 +++ b/src/OSS4/audio.c Wed Oct 03 17:24:59 2007 +0200 @@ -261,9 +261,6 @@ static void oss_write_audio(gpointer data, int length) { - - audio_buf_info abuf_info; - if (oss_convert_func != NULL) length = oss_convert_func(&data, length); @@ -655,12 +652,6 @@ } //-----------------------------OSS4 MIXER CODE----------------------------- -static int -open_mixer_device() //i think we dont need this anymore -{ - return 0; -} - void oss_get_volume(int *l, int *r) { int v;
--- a/src/OSS4/configure.c Wed Oct 03 16:15:00 2007 +0200 +++ b/src/OSS4/configure.c Wed Oct 03 17:24:59 2007 +0200 @@ -149,7 +149,7 @@ { GtkWidget *vbox, *notebook; GtkWidget *dev_vbox, *adevice_frame, *adevice_box, *adevice; - GtkWidget *mdevice_frame, *mdevice_box, *mdevice; + /* GtkWidget *mdevice_frame, *mdevice_box, *mdevice; */ GtkWidget *buffer_frame, *buffer_vbox, *buffer_table; GtkWidget *buffer_size_box, *buffer_size_label; GtkObject *buffer_size_adj, *buffer_pre_adj;
--- a/src/alac/plugin.c Wed Oct 03 16:15:00 2007 +0200 +++ b/src/alac/plugin.c Wed Oct 03 17:24:59 2007 +0200 @@ -64,6 +64,7 @@ extern void set_endian(); +/* static gchar * extname(const char *filename) { @@ -74,6 +75,7 @@ return ext; } +*/ static void alac_about(void) {
--- a/src/metronom/metronom.c Wed Oct 03 16:15:00 2007 +0200 +++ b/src/metronom/metronom.c Wed Oct 03 17:24:59 2007 +0200 @@ -19,6 +19,7 @@ #include "config.h" #include <audacious/plugin.h> +#include <audacious/output.h> #include <audacious/util.h> #include <audacious/i18n.h> #include <glib.h> @@ -101,7 +102,7 @@ #define BUF_BYTES BUF_SAMPLES * 2 #define MAX_AMPL (GINT16_TO_LE((1<<15) - 1)) -static void* play_loop(void *arg) +static void play_loop(void *arg) { gint16 data[BUF_SAMPLES]; InputPlayback *playback = arg;
--- a/src/sid/xs_config.c Wed Oct 03 16:15:00 2007 +0200 +++ b/src/sid/xs_config.c Wed Oct 03 17:24:59 2007 +0200 @@ -356,7 +356,7 @@ return pResult; } - +#if 0 static gboolean xs_filter_save(XS_CONFIG_FILE *cfg, t_xs_sid2_filter *pFilter, gint nFilter) { gchar *tmpValue, tmpKey[64]; @@ -387,7 +387,7 @@ g_free(tmpValue); return TRUE; } - +#endif /* Filter exporting and importing. These functions export/import * filter settings to/from SIDPlay2 INI-type files.
--- a/src/vorbis/vorbis.c Wed Oct 03 16:15:00 2007 +0200 +++ b/src/vorbis/vorbis.c Wed Oct 03 17:24:59 2007 +0200 @@ -598,6 +598,7 @@ tuple_free(tuple); } +/* static const gchar * get_extension(const gchar * filename) { @@ -606,6 +607,7 @@ ++ext; return ext; } +*/ /* Make sure you've locked vf_mutex */ static gboolean