Skip to content

Commit

Permalink
Supression of compiler warning
Browse files Browse the repository at this point in the history
  • Loading branch information
matthias-bs committed Apr 28, 2024
1 parent 249eb4a commit ce62e3a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/WeatherSensor.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
};
};

Expand Down

0 comments on commit ce62e3a

Please sign in to comment.