Commit e3144e6d authored by Philipp Schafft's avatar Philipp Schafft 🦁

Fixed minor compiler warnings. Also added -Wno-pointer-sign to avoid warnings from libxml2.

svn path=/icecast/trunk/ices/; revision=18511
parent 8d311c89
......@@ -6,7 +6,7 @@ SUBDIRS = log timing thread avl
bin_PROGRAMS = ices
AM_CPPFLAGS = @XIPH_CPPFLAGS@
AM_CFLAGS = @XIPH_CFLAGS@ -Wall
AM_CFLAGS = @XIPH_CFLAGS@ -Wall -Wno-pointer-sign
EXTRA_ices_SOURCES = im_oss.c im_sun.c im_alsa.c im_roar.c
......
......@@ -157,9 +157,8 @@ input_module_t *alsa_open_module(module_param_t *params)
module_param_t *current;
char *device = "plughw:0,0"; /* default device */
snd_pcm_format_t format = SND_PCM_FORMAT_S16_LE;
int channels, rate;
int use_metadata = 1; /* Default to on */
unsigned int buffered_time, exact_rate;
unsigned int exact_rate;
int dir;
snd_pcm_stream_t stream = SND_PCM_STREAM_CAPTURE;
......
......@@ -34,6 +34,7 @@
#include "stream.h"
#include "input.h"
#include "event.h"
#include "signals.h"
#include "inputmodule.h"
#include "im_playlist.h"
#include "im_stdinpcm.h"
......
......@@ -16,6 +16,7 @@
#include <signal.h>
void signal_usr1_handler(int signum);
void signal_hup_handler(int signum);
void signal_int_handler(int signum);
......
......@@ -181,7 +181,7 @@ int process_and_send_buffer(stream_description *sdsc, ref_buffer *buffer)
}
if(sdsc->downmix) {
downmix_buffer(sdsc->downmix, buffer->buf, buffer->len, be);
downmix_buffer(sdsc->downmix, (signed char *)buffer->buf, buffer->len, be);
if(sdsc->resamp) {
resample_buffer_float(sdsc->resamp, &sdsc->downmix->buffer,
buffer->len/4);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment