Author: dblaikie
Date: Tue Mar 17 12:37:17 2015
New Revision: 232507
URL: http://llvm.org/viewvc/llvm-project?rev=232507&view=rev
Log:
Fix the clang -Werror build by suppressing -Wextended-offsetof
Modified:
lldb/trunk/source/Plugins/Process/Utility/RegisterContextLinux_mips64.cpp
Modified:
lldb/trunk/source/Plugins/Process/Utility/RegisterContextLinux_mips64.cpp
URL:
http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/Process/Utility/RegisterContextLinux_mips64.cpp?rev=232507&r1=232506&r2=232507&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/Process/Utility/RegisterContextLinux_mips64.cpp
(original)
+++ lldb/trunk/source/Plugins/Process/Utility/RegisterContextLinux_mips64.cpp
Tue Mar 17 12:37:17 2015
@@ -41,8 +41,8 @@ typedef struct _FPR
} FPR;
// Computes the offset of the given GPR/FPR in the user data area.
-#define GPR_OFFSET(regname) (offsetof(GPR, regname))
-#define FPR_OFFSET(regname) (offsetof(FPR, regname))
+#define GPR_OFFSET(regname) (LLVM_EXTENSION offsetof(GPR, regname))
+#define FPR_OFFSET(regname) (LLVM_EXTENSION offsetof(FPR, regname))
// Note that the size and offset will be updated by platform-specific classes.
#define DEFINE_GPR(member, reg, alt, kind1, kind2, kind3, kind4)
\
_______________________________________________
lldb-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/lldb-commits