Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add -Wall to Makefile and fix warnings

  • Loading branch information...
commit 2c3a8e24ec76c1db37ca6576e4685e805f74929d 1 parent 4ef9a57
@tinyalsa authored
Showing with 3 additions and 9 deletions.
  1. +1 −1  Makefile
  2. +0 −8 pcm.c
  3. +1 −0  tinycap.c
  4. +1 −0  tinymix.c
View
2  Makefile
@@ -1,4 +1,4 @@
-CFLAGS = -c -fPIC
+CFLAGS = -c -fPIC -Wall
INC = include
OBJECTS = mixer.o pcm.o
LIB = libtinyalsa.so
View
8 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)) {
View
1  tinycap.c
@@ -31,6 +31,7 @@
#include <stdlib.h>
#include <stdint.h>
#include <signal.h>
+#include <string.h>
#define ID_RIFF 0x46464952
#define ID_WAVE 0x45564157
View
1  tinymix.c
@@ -30,6 +30,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
+#include <string.h>
static void tinymix_list_controls(struct mixer *mixer);
static void tinymix_detail_control(struct mixer *mixer, const char *control,
Please sign in to comment.
Something went wrong with that request. Please try again.