From 09641cc707b0cf45368fa9e61ca8607483b4989f Mon Sep 17 00:00:00 2001 From: Marc-André Lureau Date: Tue, 13 Jan 2009 19:08:22 +0200 Subject: build: fix few warnings --- src/pulse/def.h | 2 +- src/pulse/proplist.c | 2 +- src/pulsecore/core-util.h | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/pulse/def.h b/src/pulse/def.h index ace56574..7a715b66 100644 --- a/src/pulse/def.h +++ b/src/pulse/def.h @@ -428,7 +428,7 @@ typedef enum pa_subscription_event_type { PA_SUBSCRIPTION_EVENT_REMOVE = 0x0020U, /**< An object was removed */ - PA_SUBSCRIPTION_EVENT_TYPE_MASK = 0x0030U, + PA_SUBSCRIPTION_EVENT_TYPE_MASK = 0x0030U /**< A mask to extract the event operation from an event value */ } pa_subscription_event_type_t; diff --git a/src/pulse/proplist.c b/src/pulse/proplist.c index 1694284d..909df9a7 100644 --- a/src/pulse/proplist.c +++ b/src/pulse/proplist.c @@ -359,7 +359,7 @@ pa_proplist *pa_proplist_from_string(const char *str) { } blob = pa_xmalloc((size_t)(e-v)/2); - if (pa_parsehex(v, blob, (e-v)/2) != ((e-v)/2)) { + if (pa_parsehex(v, blob, (e-v)/2) != (size_t)((e-v)/2)) { pa_log("Invalid \"hex:\" value data"); pa_xfree(blob); break; diff --git a/src/pulsecore/core-util.h b/src/pulsecore/core-util.h index d9fad11e..167d0735 100644 --- a/src/pulsecore/core-util.h +++ b/src/pulsecore/core-util.h @@ -27,6 +27,7 @@ #include #include #include +#include #ifdef HAVE_SYS_RESOURCE_H #include -- cgit