etna_compile_parse_declarations(struct etna_compile *c)
{
struct tgsi_parse_context ctx = { };
- unsigned status = TGSI_PARSE_OK;
- status = tgsi_parse_init(&ctx, c->tokens);
+ MAYBE_UNUSED unsigned status = tgsi_parse_init(&ctx, c->tokens);
assert(status == TGSI_PARSE_OK);
while (!tgsi_parse_end_of_tokens(&ctx)) {
etna_compile_pass_check_usage(struct etna_compile *c)
{
struct tgsi_parse_context ctx = { };
- unsigned status = TGSI_PARSE_OK;
- status = tgsi_parse_init(&ctx, c->tokens);
+ MAYBE_UNUSED unsigned status = tgsi_parse_init(&ctx, c->tokens);
assert(status == TGSI_PARSE_OK);
for (int idx = 0; idx < c->total_decls; ++idx) {
{
struct tgsi_parse_context ctx = { };
int inst_idx = 0;
- unsigned status = TGSI_PARSE_OK;
- status = tgsi_parse_init(&ctx, c->tokens);
+ MAYBE_UNUSED unsigned status = tgsi_parse_init(&ctx, c->tokens);
assert(status == TGSI_PARSE_OK);
while (!tgsi_parse_end_of_tokens(&ctx)) {
etna_compile_pass_generate_code(struct etna_compile *c)
{
struct tgsi_parse_context ctx = { };
- unsigned status = tgsi_parse_init(&ctx, c->tokens);
+ MAYBE_UNUSED unsigned status = tgsi_parse_init(&ctx, c->tokens);
assert(status == TGSI_PARSE_OK);
int inst_idx = 0;