aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndré Draszik2019-02-06 19:29:08 -0600
committerJérôme Forissier2019-02-11 07:16:10 -0600
commitb8739746c28c7f466e911d06e7ac4959e4173e3e (patch)
tree7fc9e70faba72f91af11dad1c609174798e46a3e
parent9f36e7b895d7674772fb69b052b35c35431785a6 (diff)
downloadti-optee-test-b8739746c28c7f466e911d06e7ac4959e4173e3e.tar.gz
ti-optee-test-b8739746c28c7f466e911d06e7ac4959e4173e3e.tar.xz
ti-optee-test-b8739746c28c7f466e911d06e7ac4959e4173e3e.zip
build: ignore declaration-after-statement warnings
| Makefile:37: recipe for target 'xtest' failed | make: *** [xtest] Error 2 | make: *** Waiting for unfinished jobs.... | arith_taf.c: In function 'get_handle': | arith_taf.c:56:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] | int h = handle_get(&hdb, ptr); | ^~~ | arith_taf.c: In function 'ta_entry_arith_new_var': | arith_taf.c:82:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] | size_t len = TEE_BigIntSizeInU32(params[0].value.a); | ^~~~~~ | arith_taf.c: In function 'ta_entry_arith_new_fmm_var': | arith_taf.c:129:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] | size_t len = TEE_BigIntFMMSizeInU32(params[0].value.a); | ^~~~~~ | arith_taf.c: In function 'ta_entry_arith_free_handle': | arith_taf.c:150:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] | void *ptr = put_handle(params[0].value.a & ~HT_MASK); | ^~~~ | arith_taf.c: In function 'ta_entry_arith_from_octet_string': | arith_taf.c:165:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] | TEE_BigInt *big_int = lookup_handle(HT_BIGINT, params[0].value.a); | ^~~~~~~~~~ | arith_taf.c: In function 'ta_entry_arith_from_s32': | arith_taf.c:181:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] | TEE_BigInt *big_int = lookup_handle(HT_BIGINT, params[0].value.a); | ^~~~~~~~~~ etc. Signed-off-by: André Draszik <andre.draszik@jci.com> Acked-by: Jens Wiklander <jens.wiklander@linaro.org> Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org>
-rw-r--r--host/xtest/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/host/xtest/Makefile b/host/xtest/Makefile
index 7e152ef..f226500 100644
--- a/host/xtest/Makefile
+++ b/host/xtest/Makefile
@@ -154,6 +154,7 @@ CFLAGS += -Wall -Wcast-align -Werror \
154 -Wmissing-prototypes -Wnested-externs -Wpointer-arith \ 154 -Wmissing-prototypes -Wnested-externs -Wpointer-arith \
155 -Wshadow -Wstrict-prototypes -Wswitch-default \ 155 -Wshadow -Wstrict-prototypes -Wswitch-default \
156 -Wwrite-strings \ 156 -Wwrite-strings \
157 -Wno-declaration-after-statement \
157 -Wno-missing-field-initializers -Wno-format-zero-length 158 -Wno-missing-field-initializers -Wno-format-zero-length
158endif 159endif
159 160