fix(lib): clang-tidy unused parameter warning

This patch fixes warnings of unused parameters from the clang-tidy
misc-unused-parameters check. Note that some of these are used in
assert() calls, but clang-tidy still reports them as unused.

Signed-off-by: Chuyue Luo <Chuyue.Luo@arm.com>
Change-Id: Ib4871e8d52b23c8b04315f370ed7321dc5ba5eca
diff --git a/lib/realm/src/s2tt.c b/lib/realm/src/s2tt.c
index fd6f315..49fe430 100644
--- a/lib/realm/src/s2tt.c
+++ b/lib/realm/src/s2tt.c
@@ -432,6 +432,8 @@
  */
 unsigned long s2tte_create_assigned_destroyed(unsigned long pa, long level)
 {
+	(void)level;
+
 	assert(level >= RTT_MIN_BLOCK_LEVEL);
 	assert(addr_is_level_aligned(pa, level));
 	return (pa | S2TTE_INVALID_HIPAS_ASSIGNED | S2TTE_INVALID_RIPAS_DESTROYED);
@@ -443,6 +445,8 @@
  */
 unsigned long s2tte_create_assigned_empty(unsigned long pa, long level)
 {
+	(void)level;
+
 	assert(level >= RTT_MIN_BLOCK_LEVEL);
 	assert(addr_is_level_aligned(pa, level));
 	return (pa | S2TTE_INVALID_HIPAS_ASSIGNED | S2TTE_INVALID_RIPAS_EMPTY);
@@ -565,6 +569,8 @@
  */
 unsigned long s2tte_create_table(unsigned long pa, long level)
 {
+	(void)level;
+
 	assert(level < RTT_PAGE_LEVEL);
 	assert(GRANULE_ALIGNED(pa));
 
@@ -945,6 +951,8 @@
 /* Returns physical address of a table entry */
 unsigned long s2tte_pa_table(unsigned long s2tte, long level)
 {
+	(void)level;
+
 	assert(s2tte_is_table(s2tte, level));
 	return addr_level_mask(s2tte, RTT_PAGE_LEVEL);
 }