Compile with PlatformIO - warnings being treated as errors [-Werror=reorder]
mandl opened this issue · comments
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