From 3dcfdc58656caa4a38e1fde73a07a19114347226 Mon Sep 17 00:00:00 2001 From: Dave Murphy Date: Fri, 21 Dec 2018 11:14:28 -0500 Subject: Fix compile error with clang 3.8 When compiling with clang 3.8 (default clang version on Debian Stretch, the current stable), we get errors like this: CXX dtrace-probe.o ../../binutils-gdb/gdb/dtrace-probe.c:103:31: error: default initialization of an object of const type 'const dtrace_static_probe_ops' without a user-provided default constructor const dtrace_static_probe_ops dtrace_static_probe_ops; ^ Silence them by value-initializing those objects. It's not necessary with other compilers (later clang versions, gcc), but it shouldn't hurt either. --- gdb/probe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/probe.c') diff --git a/gdb/probe.c b/gdb/probe.c index 1f3da21..5702afe 100644 --- a/gdb/probe.c +++ b/gdb/probe.c @@ -60,7 +60,7 @@ public: /* Static operations associated with a generic probe. */ -const any_static_probe_ops any_static_probe_ops; +const any_static_probe_ops any_static_probe_ops {}; /* A helper for parse_probes that decodes a probe specification in SEARCH_PSPACE. It appends matching SALs to RESULT. */ -- cgit v1.1