diff options
author | Nico Weber <nicolasweber@gmx.de> | 2015-07-17 14:16:03 -0700 |
---|---|---|
committer | Nico Weber <nicolasweber@gmx.de> | 2015-07-17 14:18:36 -0700 |
commit | 56a90a2081379a5286edf0eea70aa2000e26c7f9 (patch) | |
tree | 70faa85e8c3d7f78a99da2e4f3a64fdff14b5a38 /cmake/libprotobuf-lite.cmake | |
parent | 798ed10e7ac36d64790edc06cf378f04598911c5 (diff) | |
download | protobuf-56a90a2081379a5286edf0eea70aa2000e26c7f9.tar.gz protobuf-56a90a2081379a5286edf0eea70aa2000e26c7f9.tar.bz2 protobuf-56a90a2081379a5286edf0eea70aa2000e26c7f9.zip |
Let GOOGLE_COMPILE_ASSERT use static_assert if available.
The motivation is that gcc 4.8+ and clang trunk warn on unused local
typedefs, which COMPILE_ASSERT adds. After this change, the warning
will be happy at least in C++11 builds. static_assert also produces a
slighly nicer diagnostic than the typedef method.
https://github.com/google/re2/commit/eb93e8bc43ac8d05322fb3e9fc885898ad924f8a
did the same change in re2.
Diffstat (limited to 'cmake/libprotobuf-lite.cmake')
0 files changed, 0 insertions, 0 deletions