diff --git a/src/vrend_renderer.c b/src/vrend_renderer.c index 613fac9..21bdb1f 100644 --- a/src/vrend_renderer.c +++ b/src/vrend_renderer.c @@ -7435,6 +7435,7 @@ int vrend_renderer_transfer_iov(const struct vrend_transfer_info *info, default: assert(0); } + return 0; } int vrend_transfer_inline_write(struct vrend_context *ctx, diff --git a/src/vrend_shader.c b/src/vrend_shader.c index 2fa7a69..b2ff88a 100644 --- a/src/vrend_shader.c +++ b/src/vrend_shader.c @@ -1788,6 +1788,7 @@ static const struct vrend_shader_io *get_io_slot(const struct vrend_shader_io *s return result; } assert(0 && "Output not found"); + return NULL; } static inline void @@ -5809,10 +5810,11 @@ static void emit_ios_indirect_generics_input(struct dump_ctx *ctx, const char *p if (ctx->generic_input_range.used) { int size = ctx->generic_input_range.io.last - ctx->generic_input_range.io.sid + 1; assert(size < 256 && size >= 0); - if (size < ctx->key->num_indirect_generic_inputs) + if (size < ctx->key->num_indirect_generic_inputs) { VREND_DEBUG(dbg_shader, NULL, "WARNING: shader key indicates less indirect inputs" " (%d) then are actually used (%d)\n", ctx->key->num_indirect_generic_inputs, size); + } if (prefer_generic_io_block(ctx, io_in)) {