From: Timur Kristóf Date: Sat, 22 Aug 2020 18:41:45 +0000 (+0200) Subject: aco: Fix unused variable warning by adding ASSERTED. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0d194a70c6497ea77bb57aa22e229c4fceabb653;p=mesa.git aco: Fix unused variable warning by adding ASSERTED. Signed-off-by: Timur Kristóf Reviewed-by: Daniel Schürmann Part-of: --- diff --git a/src/amd/compiler/aco_interface.cpp b/src/amd/compiler/aco_interface.cpp index 8f45f503a82..49379cb3169 100644 --- a/src/amd/compiler/aco_interface.cpp +++ b/src/amd/compiler/aco_interface.cpp @@ -48,7 +48,7 @@ static void validate(aco::Program *program) if (!(aco::debug_flags & aco::DEBUG_VALIDATE_IR)) return; - bool is_valid = aco::validate_ir(program); + ASSERTED bool is_valid = aco::validate_ir(program); assert(is_valid); }