This is an automated email from the ASF dual-hosted git repository. janc pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/mynewt-core.git
commit f075f3d320bb4d3a623e54b7e8ecb847e550f7d8 Author: Szymon Janc <[email protected]> AuthorDate: Thu Jan 19 14:24:15 2023 +0100 mcu/nxp: Fix Kinetics SDK compilation on newer GCC This seems to be false-positive so just disable warning when building SDK. Error: In function 'ltc_aes_decrypt_ecb', inlined from 'LTC_AES_GenerateDecryptKey' at hw/mcu/nxp/src/ext/nxp-kinetis-sdk/drivers/fsl_ltc.c:1175:14: hw/mcu/nxp/src/ext/nxp-kinetis-sdk/drivers/fsl_ltc.c:1143:14: error: 'ciphertext' may be used uninitialized [-Werror=maybe-uninitialized] 1143 | retval = ltc_process_message_in_sessions(base, &ciphertext[0], size, &plaintext[0]); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ hw/mcu/nxp/src/ext/nxp-kinetis-sdk/drivers/fsl_ltc.c: In function 'LTC_AES_GenerateDecryptKey': hw/mcu/nxp/src/ext/nxp-kinetis-sdk/drivers/fsl_ltc.c:749:17: note: by argument 2 of type 'const uint8_t *' {aka 'const unsigned char *'} to 'ltc_process_message_in_sessions' declared here 749 | static status_t ltc_process_message_in_sessions(LTC_Type *base, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ hw/mcu/nxp/src/ext/nxp-kinetis-sdk/drivers/fsl_ltc.c:1166:13: note: 'ciphertext' declared here 1166 | uint8_t ciphertext[LTC_AES_BLOCK_SIZE]; | ^~~~~~~~~~ cc1: all warnings being treated as errors --- hw/mcu/nxp/pkg.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/mcu/nxp/pkg.yml b/hw/mcu/nxp/pkg.yml index 0ba1b9d6c..1c9b4fbdd 100644 --- a/hw/mcu/nxp/pkg.yml +++ b/hw/mcu/nxp/pkg.yml @@ -55,7 +55,7 @@ pkg.ign_files.BSP_MK81F: pkg.src_dirs.BSP_KINETIS: - "src/ext/nxp-kinetis-sdk/drivers" -pkg.cflags: -std=gnu99 -mthumb +pkg.cflags: -std=gnu99 -mthumb -Wno-error=maybe-uninitialized pkg.deps: - "@apache-mynewt-core/hw/hal"
