From 3fa2ad33e4472a76a5e287852e8787e903eea0b6 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Tue, 8 Jan 2019 09:30:40 +0100 Subject: [PATCH] fix warnings --- spa/plugins/audiotestsrc/audiotestsrc.c | 5 ++--- spa/plugins/audiotestsrc/render.c | 3 ++- spa/plugins/ffmpeg/ffmpeg.c | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/spa/plugins/audiotestsrc/audiotestsrc.c b/spa/plugins/audiotestsrc/audiotestsrc.c index 643611bdd..1d08e37e8 100644 --- a/spa/plugins/audiotestsrc/audiotestsrc.c +++ b/spa/plugins/audiotestsrc/audiotestsrc.c @@ -317,11 +317,10 @@ static int make_buffer(struct impl *this) struct buffer *b; struct spa_io_buffers *io = this->io; struct spa_io_range *range = this->io_range; - int n_bytes, n_samples; - uint32_t maxsize; + uint32_t n_bytes, n_samples, maxsize; void *data; struct spa_data *d; - int32_t filled, avail; + uint32_t filled, avail; uint32_t index, offset, l0, l1; read_timer(this); diff --git a/spa/plugins/audiotestsrc/render.c b/spa/plugins/audiotestsrc/render.c index 3b2603dad..daccc2e3a 100644 --- a/spa/plugins/audiotestsrc/render.c +++ b/spa/plugins/audiotestsrc/render.c @@ -30,7 +30,8 @@ static void \ audio_test_src_create_sine_##type (struct impl *this, type *samples, size_t n_samples) \ { \ - int i, c, channels; \ + size_t i; \ + uint32_t c, channels; \ float step, amp; \ float freq = this->props.freq; \ float volume = this->props.volume; \ diff --git a/spa/plugins/ffmpeg/ffmpeg.c b/spa/plugins/ffmpeg/ffmpeg.c index 0691c3321..d25e7e4af 100644 --- a/spa/plugins/ffmpeg/ffmpeg.c +++ b/spa/plugins/ffmpeg/ffmpeg.c @@ -85,7 +85,7 @@ ffmpeg_enum_interface_info(const struct spa_handle_factory *factory, int spa_handle_factory_enum(const struct spa_handle_factory **factory, uint32_t *index) { static const AVCodec *c = NULL; - static int ci = 0; + static uint32_t ci = 0; static struct spa_handle_factory f; static char name[128];