This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] fix compile error with clang


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

Attachment: clang-fixes.patch
Description: Binary data


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]