[PATCH] fix compile error with clang

2018-12-20 Thread Dave Murphy
Cross compiling for macOS using osxcross gives errors of the form
"error: default initialization of an object of ... without a
user-provided default constructor"

Fixed by attached patch, tested compile with mingw-w64, osxcross and
linux native builds.

2018-12-20  Dave Murphy  

* gdb/dtrace-probe.c (dtrace_static_probe_ops): explicit zero initialise.
* gdb/probe.c (any_static_probe_ops): ditto
* gdb/record-btrace.c (record_btrace_thread_observer_token): ditto
* gdb/stap-probe.c (stap_static_probe_ops): ditto
* gdb/tui/tui-hooks.c (tui_observers_token): ditto
* gdb/unittests/observable-selftests.c (token1, token2, token3): ditto


clang-fixes.patch
Description: Binary data


Re: [PATCH] fix compile error with clang

2018-12-20 Thread Dave Murphy
Sorry, fatfingered the address for this patch. Thanks to everyone who
let me know off list, it's been sent to the right list now. :)

Dave

On Thu, Dec 20, 2018 at 4:43 PM Dave Murphy  wrote:
>
> Cross compiling for macOS using osxcross gives errors of the form
> "error: default initialization of an object of ... without a
> user-provided default constructor"
>
> Fixed by attached patch, tested compile with mingw-w64, osxcross and
> linux native builds.
>
> 2018-12-20  Dave Murphy  
>
> * gdb/dtrace-probe.c (dtrace_static_probe_ops): explicit zero initialise.
> * gdb/probe.c (any_static_probe_ops): ditto
> * gdb/record-btrace.c (record_btrace_thread_observer_token): ditto
> * gdb/stap-probe.c (stap_static_probe_ops): ditto
> * gdb/tui/tui-hooks.c (tui_observers_token): ditto
> * gdb/unittests/observable-selftests.c (token1, token2, token3): ditto