From 2c3a8e24ec76c1db37ca6576e4685e805f74929d Mon Sep 17 00:00:00 2001 From: Simon Wilson Date: Fri, 9 Nov 2012 14:08:18 -0800 Subject: Add -Wall to Makefile and fix warnings --- Makefile | 2 +- pcm.c | 8 -------- tinycap.c | 1 + tinymix.c | 1 + 4 files changed, 3 insertions(+), 9 deletions(-) diff --git a/Makefile b/Makefile index 8122157..6e07b5e 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -CFLAGS = -c -fPIC +CFLAGS = -c -fPIC -Wall INC = include OBJECTS = mixer.o pcm.o LIB = libtinyalsa.so diff --git a/pcm.c b/pcm.c index 00befe3..8ee59a1 100644 --- a/pcm.c +++ b/pcm.c @@ -93,14 +93,6 @@ static void param_set_min(struct snd_pcm_hw_params *p, int n, unsigned int val) } } -static void param_set_max(struct snd_pcm_hw_params *p, int n, unsigned int val) -{ - if (param_is_interval(n)) { - struct snd_interval *i = param_to_interval(p, n); - i->max = val; - } -} - static void param_set_int(struct snd_pcm_hw_params *p, int n, unsigned int val) { if (param_is_interval(n)) { diff --git a/tinycap.c b/tinycap.c index f46796b..8c9fcfb 100644 --- a/tinycap.c +++ b/tinycap.c @@ -31,6 +31,7 @@ #include #include #include +#include #define ID_RIFF 0x46464952 #define ID_WAVE 0x45564157 diff --git a/tinymix.c b/tinymix.c index cb44d66..962450e 100644 --- a/tinymix.c +++ b/tinymix.c @@ -30,6 +30,7 @@ #include #include #include +#include static void tinymix_list_controls(struct mixer *mixer); static void tinymix_detail_control(struct mixer *mixer, const char *control, -- cgit v1.2.3