commit | 758da3ddc3e081999846f7c52bc2cf24687c2aff | [log] [tgz] |
---|---|---|
author | Denys Dmytriyenko <denys@konsulko.com> | Tue May 06 21:35:55 2025 -0400 |
committer | Jerome Forissier <jerome@forissier.org> | Fri May 09 08:56:03 2025 +0200 |
tree | b287534a92857a7ac1864fcf20d627a5697af0a5 | |
parent | 77633c5198b8eea10aea6daf1e8d1d7f4a0a8907 [diff] |
Suppress new gcc-15 -Wunterminated-string-initialization GCC 15 now warns when character arrays are being initialized by strings and terminating NUL character doesn't fit. GCC 15.1 also allows marking such arrays with nonstring attribute to suppress the warning. W/o such attribute, the warning becomes error due to the global -Werror. Add the attribute accordingly. Fixes these errors: | ./regression_4000_data.h:7919:9: error: initializer-string for array of 'unsigned char' truncates NUL terminator but destination lacks 'nonstring' attribute (20 chars into 19 available) [-Werror=unterminated-string-initialization] | 7919 | "encryption standard"; | | ^~~~~~~~~~~~~~~~~~~~~ | ./regression_4000_data.h:8387:9: error: initializer-string for array of 'unsigned char' truncates NUL terminator but destination lacks 'nonstring' attribute (113 chars into 112 available) [-Werror=unterminated-string-initialization] | 8387 | "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomn" | | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ./regression_4000.c:1295:47: error: initializer-string for array of 'unsigned char' truncates NUL terminator but destination lacks 'nonstring' attribute (4 chars into 3 available) [-Werror=unterminated-string-initialization] | 1295 | static const uint8_t hash_data_sm3_a1_in[3] = "abc"; | | ^~~~~ Signed-off-by: Denys Dmytriyenko <denys@konsulko.com> Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org> Acked-by: Jens Wiklander <jens.wiklander@linaro.org> Acked-by: Etienne Carriere <etienne.carriere@foss.st.com>
This git contains source code for the test suite (xtest) used to test the OP-TEE project.
All official OP-TEE documentation has moved to http://optee.readthedocs.io. The information that used to be here in this git can be found under optee_test.
// OP-TEE core maintainers