tobiasschuerg / InfluxDB-Client-for-Arduino

Simple library for sending measurements to an InfluxDB with a single network request. Supports ESP8266 and ESP32.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

mandl opened this issue · comments

commented

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
commented

fix: cleared compiler warnings #176