libunwind-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Libunwind-devel] [Patch] Fix empty structs in libunwind-x86_64.h


From: Лежанкин Иван
Subject: [Libunwind-devel] [Patch] Fix empty structs in libunwind-x86_64.h
Date: Tue, 19 Aug 2014 14:20:58 +0400

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:

diff --git a/include/libunwind-x86_64.h b/include/libunwind-x86_64.h
index 526b1ea..99f7210 100644
--- a/include/libunwind-x86_64.h
+++ b/include/libunwind-x86_64.h
@@ -112,4 +112,5 @@ typedef struct unw_tdep_save_loc
   {
     /* Additional target-dependent info on a save location.  */
+    char unused;
   }
 unw_tdep_save_loc_t;
@@ -121,4 +122,5 @@ typedef struct
   {
     /* no x86-64-specific auxiliary proc-info */
+    char unused;
   }
 unw_tdep_proc_info_t;



reply via email to

[Prev in Thread] Current Thread [Next in Thread]