Use wxZeroMemory() rather than memset() for clearing struct fields
This does the same thing but avoids gcc 8 -Wclass-memaccess warning (harmless in this case, but potentially useful elsewhere, so it seems better to work around rather than disable it).
This commit is contained in:
@@ -92,7 +92,7 @@ struct NotifyIconData : public NOTIFYICONDATA
|
||||
{
|
||||
NotifyIconData(WXHWND hwnd)
|
||||
{
|
||||
memset(this, 0, sizeof(NOTIFYICONDATA));
|
||||
wxZeroMemory(*this);
|
||||
|
||||
// Since Vista there is a new member hBalloonIcon which will be used
|
||||
// if a user specified icon is specified in ShowBalloon(). For XP
|
||||
|
Reference in New Issue
Block a user