1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-06-12 01:53:07 +03:00

fix some warnings

warning: format '%d' expects argument of type 'int', but argument 3 has type 'long unsigned int' [-Wformat=]
warning: defined but not used [-Wunused-variable]
warning: declared 'static' but never defined [-Wunused-function]
warning: suggest parentheses around '&&' within '||' [-Wparentheses}
This commit is contained in:
Markus Sattler
2015-04-26 15:52:14 +02:00
committed by Ivan Grokhotkov
parent 2b3302c714
commit 2472970933
4 changed files with 6 additions and 7 deletions

View File

@ -180,7 +180,7 @@ char * dtostrf(double number, signed char width, unsigned char prec, char *s) {
// Extract the integer part of the number and print it
unsigned long int_part = (unsigned long) number;
double remainder = number - (double) int_part;
out += sprintf(out, "%d", int_part);
out += sprintf(out, "%ld", int_part);
// Print the decimal point, but only if there are digits beyond
if(prec > 0) {

View File

@ -63,7 +63,6 @@ volatile uint32_t* portModeRegister(uint32_t port) {
enum PinFunction {
GPIO, PWM
};
static uint32_t g_gpio_function[PINCOUNT] = { GPIO };
extern void __pinMode(uint8_t pin, uint8_t mode) {
if(pin == 16) {