Skip to content

Commit 75d5bd3

Browse files
authored
Merge pull request #9636 from VeijoPesonen/fix-compiler_warnings
Fix compiler warnings
2 parents af696c7 + 8bf6c6b commit 75d5bd3

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

TESTS/netsocket/tls/tlssocket_echotest.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ void TLSSOCKET_ECHOTEST()
6363
if (tlssocket_connect_to_echo_srv(*sock) != NSAPI_ERROR_OK) {
6464
printf("Error from tlssocket_connect_to_echo_srv\n");
6565
TEST_FAIL();
66-
return;
6766
delete sock;
67+
return;
6868
}
6969

7070
int recvd;

TESTS/network/interface/networkinterface_status.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,6 @@ void NETWORKINTERFACE_STATUS_NONBLOCK()
137137

138138
void NETWORKINTERFACE_STATUS_GET()
139139
{
140-
nsapi_connection_status_t status;
141-
142140
net = NetworkInterface::get_default_instance();
143141
net->set_blocking(true);
144142

platform/mbed_board.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
* limitations under the License.
1616
*/
1717
#include <stdio.h>
18+
#include <string.h>
1819
#include "hal/gpio_api.h"
1920
#include "platform/mbed_wait_api.h"
2021
#include "platform/mbed_toolchain.h"

0 commit comments

Comments
 (0)