mirror of https://github.com/ARMmbed/mbed-os.git
Remove minor build warnings
parent
908241fb48
commit
7bdc7b6a69
|
@ -869,7 +869,7 @@ attest_create_token(struct useful_buf_c *challenge,
|
||||||
token_err = attest_token_start(&attest_token_ctx,
|
token_err = attest_token_start(&attest_token_ctx,
|
||||||
option_flags, /* option_flags */
|
option_flags, /* option_flags */
|
||||||
key_select, /* key_select */
|
key_select, /* key_select */
|
||||||
COSE_ALGORITHM_ES256, /* alg_select */
|
alg_select, /* alg_select */
|
||||||
token);
|
token);
|
||||||
|
|
||||||
if (token_err != ATTEST_TOKEN_ERR_SUCCESS) {
|
if (token_err != ATTEST_TOKEN_ERR_SUCCESS) {
|
||||||
|
|
|
@ -51,6 +51,6 @@ intptr_t AT_CellularBase::get_property(CellularProperty key)
|
||||||
if (_property_array) {
|
if (_property_array) {
|
||||||
return _property_array[key];
|
return _property_array[key];
|
||||||
} else {
|
} else {
|
||||||
return NULL;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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),
|
_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)
|
_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()
|
void CellularContext::cp_data_received()
|
||||||
|
|
|
@ -413,7 +413,6 @@ void QUECTEL_BG96_CellularStack::ip2dot(const SocketAddress &ip, char *dot)
|
||||||
{
|
{
|
||||||
if (ip.get_ip_version() == NSAPI_IPv6) {
|
if (ip.get_ip_version() == NSAPI_IPv6) {
|
||||||
const uint8_t *bytes = (uint8_t *)ip.get_ip_bytes();
|
const uint8_t *bytes = (uint8_t *)ip.get_ip_bytes();
|
||||||
char *p = dot;
|
|
||||||
for (int i = 0; i < NSAPI_IPv6_BYTES; i += 2) {
|
for (int i = 0; i < NSAPI_IPv6_BYTES; i += 2) {
|
||||||
if (i != 0) {
|
if (i != 0) {
|
||||||
*dot++ = ':';
|
*dot++ = ':';
|
||||||
|
|
|
@ -1197,6 +1197,8 @@ void sn_coap_protocol_linked_list_duplication_info_remove(struct coap_s *handle,
|
||||||
(void)msg_id;
|
(void)msg_id;
|
||||||
#endif //SN_COAP_DUPLICATION_MAX_MSGS_COUNT
|
#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)
|
static void sn_coap_protocol_duplication_info_free(struct coap_s *handle, coap_duplication_info_s *duplication_info_ptr)
|
||||||
{
|
{
|
||||||
if (duplication_info_ptr) {
|
if (duplication_info_ptr) {
|
||||||
|
@ -1208,6 +1210,7 @@ static void sn_coap_protocol_duplication_info_free(struct coap_s *handle, coap_d
|
||||||
handle->sn_coap_protocol_free(duplication_info_ptr);
|
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
|
#if SN_COAP_BLOCKWISE_ENABLED || SN_COAP_MAX_BLOCKWISE_PAYLOAD_SIZE
|
||||||
/**************************************************************************//**
|
/**************************************************************************//**
|
||||||
|
|
|
@ -145,13 +145,13 @@ LittleFileSystem::LittleFileSystem(const char *name, BlockDevice *bd,
|
||||||
lfs_size_t read_size, lfs_size_t prog_size,
|
lfs_size_t read_size, lfs_size_t prog_size,
|
||||||
lfs_size_t block_size, lfs_size_t lookahead)
|
lfs_size_t block_size, lfs_size_t lookahead)
|
||||||
: FileSystem(name)
|
: FileSystem(name)
|
||||||
|
, _lfs()
|
||||||
|
, _config()
|
||||||
|
, _bd(NULL)
|
||||||
, _read_size(read_size)
|
, _read_size(read_size)
|
||||||
, _prog_size(prog_size)
|
, _prog_size(prog_size)
|
||||||
, _block_size(block_size)
|
, _block_size(block_size)
|
||||||
, _lookahead(lookahead)
|
, _lookahead(lookahead)
|
||||||
, _lfs()
|
|
||||||
, _config()
|
|
||||||
, _bd(NULL)
|
|
||||||
{
|
{
|
||||||
if (bd) {
|
if (bd) {
|
||||||
mount(bd);
|
mount(bd);
|
||||||
|
|
Loading…
Reference in New Issue