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

A few Compiler warnings with platformio #2

Open
olonsoft opened this issue Feb 13, 2021 · 0 comments
Open

A few Compiler warnings with platformio #2

olonsoft opened this issue Feb 13, 2021 · 0 comments

Comments

@olonsoft
Copy link

A few compiler warnings while compiling the example ParametersEEPROM.ino with platformio.
Maybe the same is with other examples too.

EBS_example02_ParametersEEPROM.ino:36:0: warning: "_PP" redefined [enabled by default]
 #define _PP(a)
 ^
EBS_example02_ParametersEEPROM.ino:33:0: note: this is the location of the previous definition      
 #define _PP(a) Serial.print(a);
 ^
EBS_example02_ParametersEEPROM.ino:37:0: warning: "_PL" redefined [enabled by default]
 #define _PL(a)
 ^
EBS_example02_ParametersEEPROM.ino:34:0: note: this is the location of the previous definition      
 #define _PL(a) Serial.println(a);
LDF: Library Dependency Finder -> http://bit.ly/configure-pio-ldf
 ^

and

In file included from JsonConfigHttp.h:35:0,
                 from EBS_example02_ParametersEEPROM.ino:44:
JsonConfigBase.h: In member function 'virtual int8_t JsonConfigBase::_doParse(size_t, uint16_t)':
JsonConfigBase.h:73:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   for (int i = 0; i < aLen; i++) {

and

EBS_example02_ParametersEEPROM.ino: In function 'void setup()':
EBS_example02_ParametersEEPROM.ino:164:23: warning: 'wifiTimeout' may be used uninitialized in this 
function [-Wmaybe-uninitialized]
   if (rc != PARAMS_OK || wifiTimeout) {
                       ^
EBS_example02_ParametersEEPROM.ino:89:8: note: 'wifiTimeout' was declared here
   bool wifiTimeout;
        ^
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

1 participant