From 9e0d6b1e087d989269829dae64a16ec7432faadf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9B=D0=B5=D0=B6=D0=B0=D0=BD=D0=BA=D0=B8=D0=BD=20=D0=98?= =?UTF-8?q?=D0=B2=D0=B0=D0=BD?= Date: Tue, 19 Aug 2014 14:20:58 +0400 Subject: [PATCH] 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: --- include/libunwind-x86_64.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/libunwind-x86_64.h b/include/libunwind-x86_64.h index 526b1ea3..34324f30 100644 --- a/include/libunwind-x86_64.h +++ b/include/libunwind-x86_64.h @@ -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;