enable more warnings

Fix some warnings
This commit is contained in:
Wim Taymans 2020-04-01 12:51:42 +02:00
parent edd019d539
commit 7a29c15628
4 changed files with 26 additions and 7 deletions

View file

@ -563,7 +563,7 @@ spa_pod_builder_addv(struct spa_pod_builder *builder, va_list args)
{
int res = 0;
struct spa_pod_frame *f = builder->state.frame;
uint32_t ftype = f ? f->pod.type : SPA_TYPE_None;
uint32_t ftype = f ? f->pod.type : (uint32_t)SPA_TYPE_None;
do {
const char *format;

View file

@ -445,7 +445,7 @@ do { \
static inline int spa_pod_parser_getv(struct spa_pod_parser *parser, va_list args)
{
struct spa_pod_frame *f = parser->state.frame;
uint32_t ftype = f ? f->pod.type : SPA_TYPE_Struct;
uint32_t ftype = f ? f->pod.type : (uint32_t)SPA_TYPE_Struct;
const struct spa_pod_prop *prop = NULL;
int count = 0;