Merge "Mark unused typedef as unused"

This commit is contained in:
Fred Gylys-Colwell
2018-02-15 16:50:35 +00:00
committed by Android (Google) Code Review

View File

@@ -94,7 +94,8 @@ inline void AppendFieldNames(std::vector<std::string>* field_name_vector,
template <bool>
struct CompileAssert {};
#define COMPILE_ASSERT(expr, msg) \
typedef util::CompileAssert<(bool(expr))> msg[bool(expr) ? 1 : -1]
typedef util::CompileAssert<(bool(expr))> msg[bool(expr) ? 1 : -1] \
__attribute__((unused))
template <typename T> struct is_unused { static const bool value = false; };
template <> struct is_unused<Unused> { static const bool value = true; };
@@ -125,4 +126,3 @@ class FirstUnusedType {
} // namespace wvcdm
#endif // WVCDM_METRICS_FIELD_TUPLES_H_