Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compiler warnings #1

Open
vkichline opened this issue Nov 6, 2020 · 1 comment
Open

Compiler warnings #1

vkichline opened this issue Nov 6, 2020 · 1 comment

Comments

@vkichline
Copy link

Using build e41325a from 11/5, I get the following non-fatal warning when compiling in PlatformIO, standard compiler settings.
M5Core2 is current, not 0.0.1:

C:/users/van/.platformio/lib/Core2ez/src/ezSound.h:13:0: warning: "TWO_PI" redefined
 #define TWO_PI             6.283185307179586
...
C:/users/van/.platformio/packages/framework-arduinoespressif32/cores/esp32/Arduino.h:44:0: note: this is the location of the previous definition
 #define TWO_PI 6.283185307179586476925286766559
C:\users\van\.platformio\lib\Core2ez\src\ezDisplayZone.h:4:0: warning: "DISPLAY" redefined
 #define DISPLAY M5.Lcd
C:/users/van/.platformio/packages/framework-arduinoespressif32/cores/esp32/Arduino.h:50:0: note: this is the location of the previous definition
 #define DISPLAY 0x1
C:/users/van/.platformio/lib/M5Core2/src/touch.h:391:0: warning: "NUM_EVENTS" redefined
 #define NUM_EVENTS 8
C:/users/van/.platformio/lib/Core2ez/src/ezEvents.h:10:0: note: this is the location of the previous definition
 #define NUM_EVENTS      11
C:/users/van/.platformio/lib/Core2ez/src/ezTheme.h:12:8: warning: extra tokens at end of #endif directive [-Wendif-labels]
 #endif _EZTHEME_H_

I get this one a lot, and I think it's an annoyance only. Seems like %ld takes care of it though:

C:\users\van\.platformio\lib\Core2ez\src\ezDisplayZone.cpp:28:48: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long int' [-Wformat=]
     Serial.printf("tmpspr = %d\n", (long)tmpspr);
C:\users\van\.platformio\lib\Core2ez\src\ezSound.cpp:177:15: warning: statement has no effect [-Wunused-value]
         phase + (i * steps);
C:\users\van\.platformio\lib\Core2ez\src\ezWidget.cpp:115:26: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
           if (!_pressing && duration > tapTime ||
@javidombla
Copy link

Error compilando para la tarjeta M5Stack-Core2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants