mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-29 05:40:23 -04:00
build: fix few warnings
This commit is contained in:
parent
49ae38347c
commit
09641cc707
3 changed files with 3 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -27,6 +27,7 @@
|
|||
#include <inttypes.h>
|
||||
#include <stdarg.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
#ifdef HAVE_SYS_RESOURCE_H
|
||||
#include <sys/resource.h>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue