From f6b3ad544063314a1e7fcaa703b5e29f5ff10780 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Tue, 15 Feb 2022 09:04:01 -0700 Subject: Add constructor to bound_minimal_symbol This adds a constructor to bound_minimal_symbol, to avoid a build failure with clang that Simon pointed out. I also took the opportunity to remove some redundant initializations, and to change one use of push_back to emplace_back, as suggested by Simon. --- gdb/psymtab.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/psymtab.c') diff --git a/gdb/psymtab.c b/gdb/psymtab.c index ac5009a..2aa1d18 100644 --- a/gdb/psymtab.c +++ b/gdb/psymtab.c @@ -1577,7 +1577,7 @@ maintenance_print_psymbols (const char *args, int from_tty) if (address_arg != NULL) { - struct bound_minimal_symbol msymbol = { NULL, NULL }; + struct bound_minimal_symbol msymbol; /* We don't assume each pc has a unique objfile (this is for debugging). */ -- cgit v1.1