aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/google/protobuf/duration.pb.cc
diff options
context:
space:
mode:
authorGravatar Jisi Liu <jisi.liu@gmail.com>2016-04-28 14:43:08 -0700
committerGravatar Jisi Liu <jisi.liu@gmail.com>2016-04-28 14:43:08 -0700
commit12fdeb9b41cb5ce2a13a6f10f0626d6e67e9f237 (patch)
tree82b9820ae26decd6ac41bd8a06185d978980ee3c /src/google/protobuf/duration.pb.cc
parentcf14183bcd5485b4a71541599ddce0b35eb71352 (diff)
parentb53417c7356deab70f44b60bd7e6270023ddc3b6 (diff)
Merge branch 'master' of github.com:google/protobuf
Diffstat (limited to 'src/google/protobuf/duration.pb.cc')
-rw-r--r--src/google/protobuf/duration.pb.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/google/protobuf/duration.pb.cc b/src/google/protobuf/duration.pb.cc
index 42c2f7dc..e3639346 100644
--- a/src/google/protobuf/duration.pb.cc
+++ b/src/google/protobuf/duration.pb.cc
@@ -180,8 +180,16 @@ Duration* Duration::New(::google::protobuf::Arena* arena) const {
void Duration::Clear() {
// @@protoc_insertion_point(message_clear_start:google.protobuf.Duration)
+#if defined(__clang__)
+#define ZR_HELPER_(f) \
+ _Pragma("clang diagnostic push") \
+ _Pragma("clang diagnostic ignored \"-Winvalid-offsetof\"") \
+ __builtin_offsetof(Duration, f) \
+ _Pragma("clang diagnostic pop")
+#else
#define ZR_HELPER_(f) reinterpret_cast<char*>(\
&reinterpret_cast<Duration*>(16)->f)
+#endif
#define ZR_(first, last) do {\
::memset(&first, 0,\