cheat to avoid warning -Werror=class-memaccess on linux
This commit is contained in:
parent
91d36d0a62
commit
94ef697ea6
|
@ -1025,7 +1025,7 @@ struct DivInstrument : DivInstrumentPOD {
|
|||
DivInstrument() :
|
||||
name("") {
|
||||
// clear and construct DivInstrumentPOD so it doesn't have any garbage in the padding
|
||||
memset((DivInstrumentPOD*)this, 0, sizeof(DivInstrumentPOD));
|
||||
memset((unsigned char*)this, 0, sizeof(DivInstrumentPOD));
|
||||
new ((DivInstrumentPOD*)this) DivInstrumentPOD;
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue