Skip to content

Commit 0bd2ea1

Browse files
committed
remove some warnings
1 parent f165a0a commit 0bd2ea1

File tree

5 files changed

+6
-5
lines changed

5 files changed

+6
-5
lines changed

cores/esp8266/core_esp8266_noniso.c

+2-3
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@ int atoi(const char* s) {
3434
}
3535

3636
long atol(const char* s) {
37-
const char * tmp;
37+
char * tmp;
3838
return strtol(s, &tmp, 10);
3939
}
4040

4141
double atof(const char* s) {
42-
const char * tmp;
42+
char * tmp;
4343
return strtod(s, &tmp);
4444
}
4545

@@ -148,7 +148,6 @@ char* ultoa(unsigned long value, char* result, int base) {
148148
}
149149

150150
char * dtostrf(double number, signed char width, unsigned char prec, char *s) {
151-
size_t n = 0;
152151

153152
if(isnan(number)) {
154153
strcpy(s, "nan");

cores/esp8266/i2c.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,8 @@ uint8_t twi_writeTo(uint8_t addr, uint8_t* data, uint8_t size, uint8_t wait, uin
202202
}
203203

204204
uint8_t twi_transmit(const uint8_t* data, uint8_t length) {
205-
205+
//TODO implement twi_transmit
206+
return 0;
206207
}
207208

208209
void twi_attachSlaveRxEvent(void (*)(uint8_t*, int)) {

libraries/ESP8266WiFi/src/WiFiClient.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,6 @@ int ICACHE_FLASH_ATTR WiFiClient::available()
157157

158158
int ICACHE_FLASH_ATTR WiFiClient::read()
159159
{
160-
uint8_t b;
161160
if (!available())
162161
return -1;
163162

libraries/ESP8266WiFi/src/WiFiUdp.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ WiFiUDP& WiFiUDP::operator=(const WiFiUDP& rhs)
5454
_ctx = rhs._ctx;
5555
if (_ctx)
5656
_ctx->ref();
57+
return *this;
5758
}
5859

5960
WiFiUDP::~WiFiUDP()

libraries/ESP8266WiFi/src/include/ClientContext.h

+1
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ class ClientContext {
4949

5050
ClientContext* next(ClientContext* new_next) {
5151
_next = new_next;
52+
return _next;
5253
}
5354

5455
void ref() {

0 commit comments

Comments
 (0)