Merge "Mark unused typedef as unused"
This commit is contained in:
committed by
Android (Google) Code Review
commit
46b7e5a53c
@@ -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_
|
||||
|
||||
|
||||
Reference in New Issue
Block a user