Skip to content

Compile with PlatformIO - warnings being treated as errors [-Werror=reorder] #179

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

Closed
mandl opened this issue Feb 12, 2022 · 1 comment
Closed

Comments

@mandl
Copy link

mandl commented Feb 12, 2022

Hello Tobias,

using your nice client with PlatformIO - i get this warning treated as errors.

I fix would be nice ..
Regards Stefan

Workaround:

build_unflags = -Werror=reorder

In file included from .pio/libdeps/esp32dev/ESP8266 Influxdb/src/query/FluxTypes.cpp:28:0:
.pio/libdeps/esp32dev/ESP8266 Influxdb/src/query/FluxTypes.h: In constructor 'FluxString::FluxString(String, String, const char*)':
.pio/libdeps/esp32dev/ESP8266 Influxdb/src/query/FluxTypes.h:131:12: error: 'FluxString::value' will be initialized after [-Werror=reorder]
     String value;
            ^
.pio/libdeps/esp32dev/ESP8266 Influxdb/src/query/FluxTypes.h:127:17: error:   'const char* FluxString::_type' [-Werror=reorder]
     const char *_type;
                 ^
.pio/libdeps/esp32dev/ESP8266 Influxdb/src/query/FluxTypes.cpp:147:1: error:   when initialized here [-Werror=reorder]
 FluxString::FluxString(String rawValue, String value, const char *type):FluxBase(rawValue),value(value),_type(type)
 ^
cc1plus: some warnings being treated as errors
@mandl
Copy link
Author

mandl commented Feb 12, 2022

fix: cleared compiler warnings #176

@mandl mandl closed this as completed Feb 12, 2022
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