summaryrefslogtreecommitdiff
path: root/gold/symtab.h
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2018-12-05 12:19:34 +1030
committerAlan Modra <amodra@gmail.com>2018-12-05 14:32:13 +1030
commit9af7cc783aebb975a487747e530030b47beeca09 (patch)
tree623fe9d60dac51d4a9ecd401c1d849cc15b8f51c /gold/symtab.h
parent706adc34932232926678abf9fe8bd530492d9e5a (diff)
downloadbinutils-gdb-9af7cc783aebb975a487747e530030b47beeca09.tar.gz
gold won't build with gcc-9
* symtab.h (Symbol::Symbol): Avoid -Wclass-memaccess warning.
Diffstat (limited to 'gold/symtab.h')
-rw-r--r--gold/symtab.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gold/symtab.h b/gold/symtab.h
index 089e156b452..16a244855da 100644
--- a/gold/symtab.h
+++ b/gold/symtab.h
@@ -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