Merge pull request #9636 from VeijoPesonen/fix-compiler_warnings

Fix compiler warnings
pull/9679/head
Martin Kojtal 2019-02-11 10:40:22 +01:00 committed by GitHub
commit 75d5bd309d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 2 additions and 3 deletions

View File

@ -63,8 +63,8 @@ void TLSSOCKET_ECHOTEST()
if (tlssocket_connect_to_echo_srv(*sock) != NSAPI_ERROR_OK) {
printf("Error from tlssocket_connect_to_echo_srv\n");
TEST_FAIL();
return;
delete sock;
return;
}
int recvd;

View File

@ -137,8 +137,6 @@ void NETWORKINTERFACE_STATUS_NONBLOCK()
void NETWORKINTERFACE_STATUS_GET()
{
nsapi_connection_status_t status;
net = NetworkInterface::get_default_instance();
net->set_blocking(true);

View File

@ -15,6 +15,7 @@
* limitations under the License.
*/
#include <stdio.h>
#include <string.h>
#include "hal/gpio_api.h"
#include "platform/mbed_wait_api.h"
#include "platform/mbed_toolchain.h"