From 5121c9aa92b85e4a4713e872ea45c8b2ebde0f9d Mon Sep 17 00:00:00 2001 From: David Blaikie Date: Tue, 17 Mar 2015 17:37:17 +0000 Subject: Fix the clang -Werror build by suppressing -Wextended-offsetof llvm-svn: 232507 --- lldb/source/Plugins/Process/Utility/RegisterContextLinux_mips64.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lldb/source/Plugins/Process/Utility/RegisterContextLinux_mips64.cpp') diff --git a/lldb/source/Plugins/Process/Utility/RegisterContextLinux_mips64.cpp b/lldb/source/Plugins/Process/Utility/RegisterContextLinux_mips64.cpp index 3e89d019325..9b328e5436a 100644 --- a/lldb/source/Plugins/Process/Utility/RegisterContextLinux_mips64.cpp +++ b/lldb/source/Plugins/Process/Utility/RegisterContextLinux_mips64.cpp @@ -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) \ -- cgit v1.2.3