[PATCH] fix compile error with clang

Dave Murphy davem@devkitpro.org
Thu Dec 20 17:26:00 GMT 2018


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  <davem@devkitpro.org>

    * 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: clang-fixes.patch
Type: application/octet-stream
Size: 2834 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20181220/3b3badb5/attachment.obj>


More information about the Gdb-patches mailing list