mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-25 23:10:23 +01:00
freedreno/ir3: Mark ir3_context_error() as NORETURN
Fixes a few warnings. Signed-off-by: Kristian H. Kristensen <hoegsberg@chromium.org>
This commit is contained in:
parent
c6463f8ac2
commit
18ce6ac632
2 changed files with 3 additions and 3 deletions
|
|
@ -382,7 +382,7 @@ ir3_split_dest(struct ir3_block *block, struct ir3_instruction **dst,
|
|||
}
|
||||
}
|
||||
|
||||
void
|
||||
NORETURN void
|
||||
ir3_context_error(struct ir3_context *ctx, const char *format, ...)
|
||||
{
|
||||
struct hash_table *errors = NULL;
|
||||
|
|
@ -401,7 +401,7 @@ ir3_context_error(struct ir3_context *ctx, const char *format, ...)
|
|||
nir_print_shader_annotated(ctx->s, stdout, errors);
|
||||
ralloc_free(errors);
|
||||
ctx->error = true;
|
||||
debug_assert(0);
|
||||
unreachable("");
|
||||
}
|
||||
|
||||
static struct ir3_instruction *
|
||||
|
|
|
|||
|
|
@ -160,7 +160,7 @@ struct ir3_instruction * ir3_create_collect(struct ir3_context *ctx,
|
|||
void ir3_split_dest(struct ir3_block *block, struct ir3_instruction **dst,
|
||||
struct ir3_instruction *src, unsigned base, unsigned n);
|
||||
|
||||
void ir3_context_error(struct ir3_context *ctx, const char *format, ...);
|
||||
NORETURN void ir3_context_error(struct ir3_context *ctx, const char *format, ...);
|
||||
|
||||
#define compile_assert(ctx, cond) do { \
|
||||
if (!(cond)) ir3_context_error((ctx), "failed assert: "#cond"\n"); \
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue