mirror of
https://github.com/esp8266/Arduino.git
synced 2025-04-25 20:02:37 +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:
parent
2b3302c714
commit
2472970933
@ -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) {
|
||||
|
@ -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) {
|
||||
|
@ -259,7 +259,7 @@ void ESP8266WebServer::_parseArguments(String data)
|
||||
Serial.print(" &@ ");
|
||||
Serial.println(next_arg_index);
|
||||
#endif
|
||||
if (equal_sign_index == -1 || equal_sign_index > next_arg_index && next_arg_index != -1) {
|
||||
if ((equal_sign_index == -1) || ((equal_sign_index > next_arg_index) && (next_arg_index != -1))) {
|
||||
#ifdef DEBUG
|
||||
Serial.print("arg missing value: ");
|
||||
Serial.println(iarg);
|
||||
|
@ -44,7 +44,7 @@
|
||||
//#define configADJUSTED_HEAP_SIZE ( configTOTAL_HEAP_SIZE - portBYTE_ALIGNMENT )
|
||||
|
||||
//static unsigned char ucHeap[ configTOTAL_HEAP_SIZE ];
|
||||
static unsigned char *ucHeap;
|
||||
//static unsigned char *ucHeap;
|
||||
|
||||
typedef struct A_BLOCK_LINK
|
||||
{
|
||||
@ -56,16 +56,16 @@ static const unsigned short heapSTRUCT_SIZE = ( sizeof( xBlockLink ) + portBYTE_
|
||||
|
||||
//static const size_t xTotalHeapSize = ( ( size_t ) configADJUSTED_HEAP_SIZE ) & ( ( size_t ) ~portBYTE_ALIGNMENT_MASK );
|
||||
|
||||
static xBlockLink xStart, *pxEnd = NULL;
|
||||
//static xBlockLink xStart, *pxEnd = NULL;
|
||||
|
||||
//static size_t xFreeBytesRemaining = ( ( size_t ) configADJUSTED_HEAP_SIZE ) & ( ( size_t ) ~portBYTE_ALIGNMENT_MASK );
|
||||
|
||||
|
||||
/*------------------------º¯ÊýÉùÃ÷-----------------------------------*/
|
||||
|
||||
static void prvInsertBlockIntoFreeList( xBlockLink *pxBlockToInsert ) ;//ICACHE_FLASH_ATTR;
|
||||
//static void prvInsertBlockIntoFreeList( xBlockLink *pxBlockToInsert ) ;//ICACHE_FLASH_ATTR;
|
||||
|
||||
static void prvHeapInit( void ) ;//ICACHE_FLASH_ATTR;
|
||||
//static void prvHeapInit( void ) ;//ICACHE_FLASH_ATTR;
|
||||
|
||||
void vApplicationMallocFailedHook( void ) ;//ICACHE_FLASH_ATTR;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user