Added stringop-overflow ignore for MinGW
Dieser Commit ist enthalten in:
Ursprung
0a5e654df7
Commit
174ffd8690
@ -301,7 +301,14 @@ void LanX::updateChecksum(uint8_t len)
|
||||
{
|
||||
uint8_t val = XpressNet::calcChecksum(*reinterpret_cast<const XpressNet::Message*>(&xheader), len);
|
||||
uint8_t* checksum = &xheader + len + 1;
|
||||
#ifdef __MINGW32__
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wstringop-overflow"
|
||||
#endif
|
||||
*checksum = val;
|
||||
#ifdef __MINGW32__
|
||||
#pragma GCC diagnostic pop
|
||||
#endif
|
||||
}
|
||||
|
||||
bool LanX::isChecksumValid(const LanX &lanX)
|
||||
|
||||
Laden…
x
In neuem Issue referenzieren
Einen Benutzer sperren