diff options
author | Nicolai Hähnle <[email protected]> | 2016-11-04 10:39:45 +0100 |
---|---|---|
committer | Nicolai Hähnle <[email protected]> | 2016-11-10 13:18:16 +0100 |
commit | b21912e2e92234d66c90b0f6f014a83698ef5ecb (patch) | |
tree | bc133f2458fd108264e5011c81cc291efae9fa51 /src/gallium/drivers/radeonsi/si_shader.c | |
parent | b46a9c570f431d3953a3ba31ffe76ad17568e522 (diff) |
radeonsi: fix/silence unused variable warnings in optimized builds
I'm leaving num_out_sgpr around since it's not in a fast path, and besides
the compiler should be able to optimize it away easily. The alternative
with #if/#endif would be extremely ugly.
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi/si_shader.c')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_shader.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/radeonsi/si_shader.c b/src/gallium/drivers/radeonsi/si_shader.c index 287b22fad9f..8e403d74e8d 100644 --- a/src/gallium/drivers/radeonsi/si_shader.c +++ b/src/gallium/drivers/radeonsi/si_shader.c @@ -6872,7 +6872,8 @@ static void si_build_wrapper_function(struct si_shader_context *ctx, LLVMValueRef out[48]; LLVMTypeRef function_type; unsigned num_params; - unsigned num_out_sgpr, num_out; + unsigned num_out; + MAYBE_UNUSED unsigned num_out_sgpr; /* used in debug checks */ unsigned num_sgprs, num_vgprs; unsigned last_sgpr_param; unsigned gprs; |