Skip to content

Commit e65a0c0

Browse files
committed
Remove minor build warnings
1 parent bdd6cb8 commit e65a0c0

File tree

7 files changed

+9
-10
lines changed

7 files changed

+9
-10
lines changed

components/TARGET_PSA/services/attestation/COMPONENT_PSA_SRV_IMPL/tfm_impl/attestation_core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -869,7 +869,7 @@ attest_create_token(struct useful_buf_c *challenge,
869869
token_err = attest_token_start(&attest_token_ctx,
870870
option_flags, /* option_flags */
871871
key_select, /* key_select */
872-
COSE_ALGORITHM_ES256, /* alg_select */
872+
alg_select, /* alg_select */
873873
token);
874874

875875
if (token_err != ATTEST_TOKEN_ERR_SUCCESS) {

features/cellular/framework/AT/AT_CellularBase.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,6 @@ intptr_t AT_CellularBase::get_property(CellularProperty key)
5151
if (_property_array) {
5252
return _property_array[key];
5353
} else {
54-
return NULL;
54+
return 0;
5555
}
5656
}

features/cellular/framework/device/CellularContext.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ CellularContext::CellularContext() : _next(0), _stack(0), _pdp_type(DEFAULT_PDP_
6464
_apn(0), _uname(0), _pwd(0), _dcd_pin(NC), _active_high(false), _cp_netif(0), _retry_array_length(0),
6565
_retry_count(0), _device(0), _nw(0), _is_blocking(true), _nonip_req(false), _cp_in_use(false)
6666
{
67-
memset(_retry_timeout_array, 0, CELLULAR_RETRY_ARRAY_SIZE);
67+
memset(_retry_timeout_array, 0, sizeof(_retry_timeout_array));
6868
}
6969

7070
void CellularContext::cp_data_received()

features/cellular/framework/targets/QUECTEL/BG96/QUECTEL_BG96_CellularStack.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,6 @@ void QUECTEL_BG96_CellularStack::ip2dot(const SocketAddress &ip, char *dot)
413413
{
414414
if (ip.get_ip_version() == NSAPI_IPv6) {
415415
const uint8_t *bytes = (uint8_t *)ip.get_ip_bytes();
416-
char *p = dot;
417416
for (int i = 0; i < NSAPI_IPv6_BYTES; i += 2) {
418417
if (i != 0) {
419418
*dot++ = ':';

features/frameworks/TARGET_PSA/pal/pal_mbed_os_intf.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,6 @@ static void psa_attestation_destroy_key_for_test()
5858

5959
static void psa_attestation_inject_key_for_test(void)
6060
{
61-
62-
63-
psa_status_t status = PSA_SUCCESS;
6461
size_t exported_length;
6562
uint8_t exported[sizeof(public_key_data)];
6663

features/frameworks/mbed-coap/source/sn_coap_protocol.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1203,6 +1203,8 @@ void sn_coap_protocol_linked_list_duplication_info_remove(struct coap_s *handle,
12031203
(void)msg_id;
12041204
#endif //SN_COAP_DUPLICATION_MAX_MSGS_COUNT
12051205
}
1206+
1207+
#if SN_COAP_DUPLICATION_MAX_MSGS_COUNT
12061208
static void sn_coap_protocol_duplication_info_free(struct coap_s *handle, coap_duplication_info_s *duplication_info_ptr)
12071209
{
12081210
if (duplication_info_ptr) {
@@ -1214,6 +1216,7 @@ static void sn_coap_protocol_duplication_info_free(struct coap_s *handle, coap_d
12141216
handle->sn_coap_protocol_free(duplication_info_ptr);
12151217
}
12161218
}
1219+
#endif // SN_COAP_DUPLICATION_MAX_MSGS_COUNT
12171220

12181221
#if SN_COAP_BLOCKWISE_ENABLED || SN_COAP_MAX_BLOCKWISE_PAYLOAD_SIZE
12191222
/**************************************************************************//**

features/storage/filesystem/littlefs/LittleFileSystem.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,13 +145,13 @@ LittleFileSystem::LittleFileSystem(const char *name, BlockDevice *bd,
145145
lfs_size_t read_size, lfs_size_t prog_size,
146146
lfs_size_t block_size, lfs_size_t lookahead)
147147
: FileSystem(name)
148+
, _lfs()
149+
, _config()
150+
, _bd(NULL)
148151
, _read_size(read_size)
149152
, _prog_size(prog_size)
150153
, _block_size(block_size)
151154
, _lookahead(lookahead)
152-
, _lfs()
153-
, _config()
154-
, _bd(NULL)
155155
{
156156
if (bd) {
157157
mount(bd);

0 commit comments

Comments
 (0)