Remove minor build warnings

pull/11392/head
Hugues Kamba 2019-09-02 15:04:58 +01:00
parent bdd6cb8dee
commit e65a0c0a99
7 changed files with 9 additions and 10 deletions

View File

@ -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) {

View File

@ -51,6 +51,6 @@ intptr_t AT_CellularBase::get_property(CellularProperty key)
if (_property_array) {
return _property_array[key];
} else {
return NULL;
return 0;
}
}

View File

@ -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()

View File

@ -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++ = ':';

View File

@ -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)];

View File

@ -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
/**************************************************************************//**

View File

@ -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);