1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-06-06 05:21:22 +03:00

remove some warnings

This commit is contained in:
Markus Sattler 2015-04-06 19:54:01 +02:00
parent f165a0afcd
commit 0bd2ea1948
5 changed files with 6 additions and 5 deletions

View File

@ -34,12 +34,12 @@ int atoi(const char* s) {
}
long atol(const char* s) {
const char * tmp;
char * tmp;
return strtol(s, &tmp, 10);
}
double atof(const char* s) {
const char * tmp;
char * tmp;
return strtod(s, &tmp);
}
@ -148,7 +148,6 @@ char* ultoa(unsigned long value, char* result, int base) {
}
char * dtostrf(double number, signed char width, unsigned char prec, char *s) {
size_t n = 0;
if(isnan(number)) {
strcpy(s, "nan");

View File

@ -202,7 +202,8 @@ uint8_t twi_writeTo(uint8_t addr, uint8_t* data, uint8_t size, uint8_t wait, uin
}
uint8_t twi_transmit(const uint8_t* data, uint8_t length) {
//TODO implement twi_transmit
return 0;
}
void twi_attachSlaveRxEvent(void (*)(uint8_t*, int)) {

View File

@ -157,7 +157,6 @@ int ICACHE_FLASH_ATTR WiFiClient::available()
int ICACHE_FLASH_ATTR WiFiClient::read()
{
uint8_t b;
if (!available())
return -1;

View File

@ -54,6 +54,7 @@ WiFiUDP& WiFiUDP::operator=(const WiFiUDP& rhs)
_ctx = rhs._ctx;
if (_ctx)
_ctx->ref();
return *this;
}
WiFiUDP::~WiFiUDP()

View File

@ -49,6 +49,7 @@ class ClientContext {
ClientContext* next(ClientContext* new_next) {
_next = new_next;
return _next;
}
void ref() {