Skip to content

Commit bf36ff7

Browse files
authored
Merge pull request #8855 from michalpasztamobica/warnings_fix
Fix compilation warnings (apart from nanostack)
2 parents b005489 + e101943 commit bf36ff7

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
@@ -791,7 +791,7 @@ int SDBlockDevice::_cmd(SDBlockDevice::cmdSupported cmd, uint32_t arg, bool isAc
791791
switch (cmd) {
792792
case CMD8_SEND_IF_COND: // Response R7
793793
debug_if(_dbg, "V2-Version Card\n");
794-
_card_type = SDCARD_V2;
794+
_card_type = SDCARD_V2; // fallthrough
795795
// Note: No break here, need to read rest of the response
796796
case CMD58_READ_OCR: // Response R3
797797
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
@@ -59,7 +59,7 @@ void mbed_error_vprintf(const char *format, va_list arg)
5959
{
6060
char buffer[132];
6161
int size = vsnprintf(buffer, sizeof buffer, format, arg);
62-
if (size >= sizeof buffer) {
62+
if ((unsigned int)size >= sizeof buffer) {
6363
/* Output was truncated - indicate by overwriting tail of buffer
6464
* with ellipsis, newline and null terminator.
6565
*/

0 commit comments

Comments
 (0)