diff options
author | Feng Xiao <xfxyjwf@gmail.com> | 2014-12-02 15:28:11 -0800 |
---|---|---|
committer | Feng Xiao <xfxyjwf@gmail.com> | 2014-12-02 15:28:11 -0800 |
commit | 9173ba22a9ff70697cea92356b9b96cdff71e4ca (patch) | |
tree | fdb325476a27ec1ac6b408847912a06108fbc8fa /src/google/protobuf/stubs/common.h | |
parent | 7f2a9fb1af432a9831b3e6769905601d72c29796 (diff) |
Get rid of some build warnings.
Diffstat (limited to 'src/google/protobuf/stubs/common.h')
-rw-r--r-- | src/google/protobuf/stubs/common.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/google/protobuf/stubs/common.h b/src/google/protobuf/stubs/common.h index b7e11749..c0cfd414 100644 --- a/src/google/protobuf/stubs/common.h +++ b/src/google/protobuf/stubs/common.h @@ -381,8 +381,9 @@ struct CompileAssert { #undef GOOGLE_COMPILE_ASSERT #define GOOGLE_COMPILE_ASSERT(expr, msg) \ - typedef ::google::protobuf::internal::CompileAssert<(bool(expr))> \ - msg[bool(expr) ? 1 : -1] + ::google::protobuf::internal::CompileAssert<(bool(expr))> \ + msg[bool(expr) ? 1 : -1]; \ + (void)msg // Implementation details of COMPILE_ASSERT: |