Fix MTE support from causing unused variable warnings
assert() calls are removed in release builds, and if that assert call is
the only use of a variable, an unused variable warning will be triggered
in a release build. This patch fixes this problem when
CTX_INCLUDE_MTE_REGS by not using an intermediate variable to store the
results of get_armv8_5_mte_support().

Change-Id: I529e10ec0b2c8650d2c3ab52c4f0cecc0b3a670e
Signed-off-by: Justin Chadwell <justin.chadwell@arm.com>
1 parent 6a7cbfd commit 019b03a3001a61f7d42fa70abee6c284f542b2d2
@Justin Chadwell Justin Chadwell authored on 20 Sep 2019
Showing 1 changed file
View
lib/el3_runtime/aarch64/context_mgmt.c