aboutsummaryrefslogtreecommitdiff
path: root/services
diff options
context:
space:
mode:
authorAmbroise Vincent <ambroise.vincent@arm.com>2019-02-14 09:48:21 +0000
committerAmbroise Vincent <ambroise.vincent@arm.com>2019-04-01 10:43:42 +0100
commitbde2836fcc23e8cb98dfa0250937e6d771b260b7 (patch)
treedc66660c7e751147d7d843c1937f905f17973830 /services
parent609e053caabf0807a71243eec11f49120eaaab61 (diff)
downloadtrusted-firmware-a-bde2836fcc23e8cb98dfa0250937e6d771b260b7.tar.gz
Remove several warnings reported with W=2
Improved support for W=2 compilation flag by solving some nested-extern and sign-compare warnings. The libraries are compiling with warnings (which turn into errors with the Werror flag). Outside of libraries, some warnings cannot be fixed. Change-Id: I06b1923857f2a6a50e93d62d0274915b268cef05 Signed-off-by: Ambroise Vincent <ambroise.vincent@arm.com>
Diffstat (limited to 'services')
-rw-r--r--services/std_svc/spm/spm_buffers.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/services/std_svc/spm/spm_buffers.c b/services/std_svc/spm/spm_buffers.c
index 736b23001b..3e0c9496fc 100644
--- a/services/std_svc/spm/spm_buffers.c
+++ b/services/std_svc/spm/spm_buffers.c
@@ -42,7 +42,7 @@ int spm_response_add(uint16_t client_id, uint16_t handle, uint32_t token,
}
}
- for (int i = 0; i < ARRAY_SIZE(responses); i++) {
+ for (unsigned int i = 0U; i < ARRAY_SIZE(responses); i++) {
struct sprt_response *resp = &(responses[i]);
if (resp->is_valid == 0) {