gold won't build with gcc-9

* symtab.h (Symbol::Symbol): Avoid -Wclass-memaccess warning.
This commit is contained in:
Alan Modra 2018-12-05 12:19:34 +10:30
parent 706adc3493
commit 9af7cc783a
2 changed files with 5 additions and 1 deletions

View file

@ -1,3 +1,7 @@
2018-12-05 Alan Modra <amodra@gmail.com>
* symtab.h (Symbol::Symbol): Avoid -Wclass-memaccess warning.
2018-12-03 Alexey Neyman <stilor@att.net>
PR gold/23594

View file

@ -914,7 +914,7 @@ class Symbol
// Instances of this class should always be created at a specific
// size.
Symbol()
{ memset(this, 0, sizeof *this); }
{ memset(static_cast<void*>(this), 0, sizeof *this); }
// Initialize the general fields.
void