Skip to content

Commit e101943

Browse files
Fix compilation warnings (apart from nanostack)
1 parent fdca1e3 commit e101943

File tree

5 files changed

+5
-4
lines changed

5 files changed

+5
-4
lines changed

components/802.15.4_RF/stm-s2lp-rf-driver/source/rf_configuration.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ void rf_conf_calculate_rx_filter_bandwidth_registers(uint32_t rx_bandwidth, uint
104104
uint8_t chflt_e_tmp = 0;
105105
uint8_t chflt_m_tmp = 0;
106106

107-
while (rx_bandwidth < 900000 / (2 << chflt_e_tmp)) {
107+
while (rx_bandwidth < 900000u / (2 << chflt_e_tmp)) {
108108
chflt_e_tmp++;
109109
}
110110
uint32_t rx_bandwidth_tmp = rx_bandwidth;

components/storage/blockdevice/COMPONENT_SD/SDBlockDevice.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -789,7 +789,7 @@ int SDBlockDevice::_cmd(SDBlockDevice::cmdSupported cmd, uint32_t arg, bool isAc
789789
switch (cmd) {
790790
case CMD8_SEND_IF_COND: // Response R7
791791
debug_if(_dbg, "V2-Version Card\n");
792-
_card_type = SDCARD_V2;
792+
_card_type = SDCARD_V2; // fallthrough
793793
// Note: No break here, need to read rest of the response
794794
case CMD58_READ_OCR: // Response R3
795795
response = (_spi.write(SPI_FILL_CHAR) << 24);

features/cellular/framework/AT/ATHandler.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ ssize_t ATHandler::read_string(char *buf, size_t size, bool read_even_stop_tag)
467467
return -1;
468468
}
469469

470-
int len = 0;
470+
unsigned int len = 0;
471471
size_t match_pos = 0;
472472
bool delimiter_found = false;
473473

features/nanostack/mbed-mesh-api/source/wisun_tasklet.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
#include "multicast_api.h"
2828
#include "mac_api.h"
2929
#include "sw_mac.h"
30+
#include "ws_management_api.h" //ws_management_node_init
3031

3132
// For tracing we need to define flag, have include and define group
3233
//#define HAVE_DEBUG

platform/mbed_board.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ void mbed_error_vprintf(const char *format, va_list arg)
5858
{
5959
char buffer[132];
6060
int size = vsnprintf(buffer, sizeof buffer, format, arg);
61-
if (size >= sizeof buffer) {
61+
if ((unsigned int)size >= sizeof buffer) {
6262
/* Output was truncated - indicate by overwriting tail of buffer
6363
* with ellipsis, newline and null terminator.
6464
*/

0 commit comments

Comments
 (0)