diff --git a/components/TARGET_PSA/services/attestation/COMPONENT_PSA_SRV_IMPL/tfm_impl/attestation_core.c b/components/TARGET_PSA/services/attestation/COMPONENT_PSA_SRV_IMPL/tfm_impl/attestation_core.c index 2df119b6b0..1e3ef463d5 100755 --- a/components/TARGET_PSA/services/attestation/COMPONENT_PSA_SRV_IMPL/tfm_impl/attestation_core.c +++ b/components/TARGET_PSA/services/attestation/COMPONENT_PSA_SRV_IMPL/tfm_impl/attestation_core.c @@ -869,7 +869,7 @@ attest_create_token(struct useful_buf_c *challenge, token_err = attest_token_start(&attest_token_ctx, option_flags, /* option_flags */ key_select, /* key_select */ - COSE_ALGORITHM_ES256, /* alg_select */ + alg_select, /* alg_select */ token); if (token_err != ATTEST_TOKEN_ERR_SUCCESS) { diff --git a/features/cellular/framework/AT/AT_CellularBase.cpp b/features/cellular/framework/AT/AT_CellularBase.cpp index f8f77dbc50..498116e708 100644 --- a/features/cellular/framework/AT/AT_CellularBase.cpp +++ b/features/cellular/framework/AT/AT_CellularBase.cpp @@ -51,6 +51,6 @@ intptr_t AT_CellularBase::get_property(CellularProperty key) if (_property_array) { return _property_array[key]; } else { - return NULL; + return 0; } } diff --git a/features/cellular/framework/device/CellularContext.cpp b/features/cellular/framework/device/CellularContext.cpp index cf2746ecdb..3d956355d1 100644 --- a/features/cellular/framework/device/CellularContext.cpp +++ b/features/cellular/framework/device/CellularContext.cpp @@ -64,7 +64,7 @@ CellularContext::CellularContext() : _next(0), _stack(0), _pdp_type(DEFAULT_PDP_ _apn(0), _uname(0), _pwd(0), _dcd_pin(NC), _active_high(false), _cp_netif(0), _retry_array_length(0), _retry_count(0), _device(0), _nw(0), _is_blocking(true), _nonip_req(false), _cp_in_use(false) { - memset(_retry_timeout_array, 0, CELLULAR_RETRY_ARRAY_SIZE); + memset(_retry_timeout_array, 0, sizeof(_retry_timeout_array)); } void CellularContext::cp_data_received() diff --git a/features/cellular/framework/targets/QUECTEL/BG96/QUECTEL_BG96_CellularStack.cpp b/features/cellular/framework/targets/QUECTEL/BG96/QUECTEL_BG96_CellularStack.cpp index 2cfef67cd3..c65fd50edd 100644 --- a/features/cellular/framework/targets/QUECTEL/BG96/QUECTEL_BG96_CellularStack.cpp +++ b/features/cellular/framework/targets/QUECTEL/BG96/QUECTEL_BG96_CellularStack.cpp @@ -413,7 +413,6 @@ void QUECTEL_BG96_CellularStack::ip2dot(const SocketAddress &ip, char *dot) { if (ip.get_ip_version() == NSAPI_IPv6) { const uint8_t *bytes = (uint8_t *)ip.get_ip_bytes(); - char *p = dot; for (int i = 0; i < NSAPI_IPv6_BYTES; i += 2) { if (i != 0) { *dot++ = ':'; diff --git a/features/frameworks/TARGET_PSA/pal/pal_mbed_os_intf.cpp b/features/frameworks/TARGET_PSA/pal/pal_mbed_os_intf.cpp index dded6d0180..00738c0144 100644 --- a/features/frameworks/TARGET_PSA/pal/pal_mbed_os_intf.cpp +++ b/features/frameworks/TARGET_PSA/pal/pal_mbed_os_intf.cpp @@ -58,9 +58,6 @@ static void psa_attestation_destroy_key_for_test() static void psa_attestation_inject_key_for_test(void) { - - - psa_status_t status = PSA_SUCCESS; size_t exported_length; uint8_t exported[sizeof(public_key_data)]; diff --git a/features/frameworks/mbed-coap/source/sn_coap_protocol.c b/features/frameworks/mbed-coap/source/sn_coap_protocol.c index aff7fff444..7f0f0d83cb 100644 --- a/features/frameworks/mbed-coap/source/sn_coap_protocol.c +++ b/features/frameworks/mbed-coap/source/sn_coap_protocol.c @@ -1203,6 +1203,8 @@ void sn_coap_protocol_linked_list_duplication_info_remove(struct coap_s *handle, (void)msg_id; #endif //SN_COAP_DUPLICATION_MAX_MSGS_COUNT } + +#if SN_COAP_DUPLICATION_MAX_MSGS_COUNT static void sn_coap_protocol_duplication_info_free(struct coap_s *handle, coap_duplication_info_s *duplication_info_ptr) { if (duplication_info_ptr) { @@ -1214,6 +1216,7 @@ static void sn_coap_protocol_duplication_info_free(struct coap_s *handle, coap_d handle->sn_coap_protocol_free(duplication_info_ptr); } } +#endif // SN_COAP_DUPLICATION_MAX_MSGS_COUNT #if SN_COAP_BLOCKWISE_ENABLED || SN_COAP_MAX_BLOCKWISE_PAYLOAD_SIZE /**************************************************************************//** diff --git a/features/storage/filesystem/littlefs/LittleFileSystem.cpp b/features/storage/filesystem/littlefs/LittleFileSystem.cpp index 34ee5f6093..fce176f65c 100644 --- a/features/storage/filesystem/littlefs/LittleFileSystem.cpp +++ b/features/storage/filesystem/littlefs/LittleFileSystem.cpp @@ -145,13 +145,13 @@ LittleFileSystem::LittleFileSystem(const char *name, BlockDevice *bd, lfs_size_t read_size, lfs_size_t prog_size, lfs_size_t block_size, lfs_size_t lookahead) : FileSystem(name) + , _lfs() + , _config() + , _bd(NULL) , _read_size(read_size) , _prog_size(prog_size) , _block_size(block_size) , _lookahead(lookahead) - , _lfs() - , _config() - , _bd(NULL) { if (bd) { mount(bd);