mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2024-11-21 15:17:39 +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:
parent
e63cadf76d
commit
9e0d6b1e08
1 changed files with 2 additions and 0 deletions
|
@ -111,6 +111,7 @@ x86_64_regnum_t;
|
|||
typedef struct unw_tdep_save_loc
|
||||
{
|
||||
/* Additional target-dependent info on a save location. */
|
||||
char unused;
|
||||
}
|
||||
unw_tdep_save_loc_t;
|
||||
|
||||
|
@ -120,6 +121,7 @@ typedef ucontext_t unw_tdep_context_t;
|
|||
typedef struct
|
||||
{
|
||||
/* no x86-64-specific auxiliary proc-info */
|
||||
char unused;
|
||||
}
|
||||
unw_tdep_proc_info_t;
|
||||
|
||||
|
|
Loading…
Reference in a new issue