1
0
Fork 0
mirror of https://github.com/tobast/libunwind-eh_elf.git synced 2024-11-25 08:37:38 +01:00

Fix empty structs in libunwind-x86_64.h

Hi,

there is a compilation issue with Clang and latest libunwind - It's
about "typedef struct unw_tdep_save_loc" and one more struct:

include/libunwind-x86_64.h:111:9: error: empty struct has size 0 in C,
size 1 in C++ [-Werror,-Wextern-c-compat]

The solution is very simple:
This commit is contained in:
Лежанкин Иван 2014-08-19 14:20:58 +04:00 committed by Arun Sharma
parent e63cadf76d
commit 9e0d6b1e08

View file

@ -111,6 +111,7 @@ x86_64_regnum_t;
typedef struct unw_tdep_save_loc typedef struct unw_tdep_save_loc
{ {
/* Additional target-dependent info on a save location. */ /* Additional target-dependent info on a save location. */
char unused;
} }
unw_tdep_save_loc_t; unw_tdep_save_loc_t;
@ -120,6 +121,7 @@ typedef ucontext_t unw_tdep_context_t;
typedef struct typedef struct
{ {
/* no x86-64-specific auxiliary proc-info */ /* no x86-64-specific auxiliary proc-info */
char unused;
} }
unw_tdep_proc_info_t; unw_tdep_proc_info_t;