commit | 05e030e08bb6ff83fc3a428b9e288d4ab3a72be9 | [log] [tgz] |
---|---|---|
author | Justin Chadwell <justin.chadwell@arm.com> | Fri Sep 20 09:13:14 2019 +0100 |
committer | Justin Chadwell <justin.chadwell@arm.com> | Fri Sep 20 09:17:55 2019 +0100 |
tree | 43579e0c40f00d40879fb9e140470d113eb6b2b5 | |
parent | 5374304f666d62bdb7a29240de6d7035a3557207 [diff] |
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>