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

Doesn't build when using ESP32 core 2.0.4 with Arduino #161

Open
av4625 opened this issue Jul 27, 2022 · 0 comments
Open

Doesn't build when using ESP32 core 2.0.4 with Arduino #161

av4625 opened this issue Jul 27, 2022 · 0 comments

Comments

@av4625
Copy link

av4625 commented Jul 27, 2022

I have been using this library "fine" (there are a ton of compiler warnings) with 2.0.2 but there is a bug for SD cards in 2.0.2 meaning I updated to 2.0.4.

Now on 2.0.4 a lot of these compiler warnings are treated as errors and it no longer builds.

Errors are below, there are some other warnings as well that I have not shown.

Arduino/libraries/NeoGPS/src/ublox/ubxNMEA.cpp: In member function 'virtual bool ubloxNMEA::parseField(char)':
Arduino/libraries/NeoGPS/src/ublox/ubxNMEA.cpp:36:9: error: case value '10' not in enumerated type 'NMEAGPS::nmea_msg_t' [-Werror=switch]
         case PUBX_04: return parsePUBX_04( chr );
Arduino/libraries/NeoGPS/src/ublox/ubxGPS.cpp: In member function 'bool ubloxGPS::parseNavPvt(uint8_t)':
Arduino/libraries/NeoGPS/src/ublox/ubxGPS.cpp:629:8: error: unused variable 'ok' [-Werror=unused-variable]
   bool ok = true;
        ^~
Arduino/libraries/NeoGPS/src/ublox/ubxGPS.cpp:919:1: error: no return statement in function returning non-void [-Werror=return-type]
 } // parseNavPvt
 ^
Arduino/libraries/NeoGPS/src/ublox/ubxGPS.cpp: At global scope:
Arduino/libraries/NeoGPS/src/ublox/ubxGPS.cpp:118:13: error: 'char toHexDigit(uint8_t)' defined but not used [-Werror=unused-function]
 static char toHexDigit( uint8_t val )
             ^~~~~~~~~~
cc1plus: some warnings being treated as errors
cc1plus: some warnings being treated as errors
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