diff --git a/src/WeatherSensor.h b/src/WeatherSensor.h index b2577be3..289877fe 100644 --- a/src/WeatherSensor.h +++ b/src/WeatherSensor.h @@ -318,7 +318,10 @@ class WeatherSensor { Sensor () { + #pragma GCC diagnostic push + #pragma GCC diagnostic ignore "-Wclass-memaccess" memset(this, 0, sizeof(*this)); + #pragma GCC diagnostic pop }; };