Mark unused typedef as unused
Merge from Widevine repo of http://go/wvgerrit/43401 This turns off a bunch of unused typedef warning messages test: unit tests bug: 70894426 Change-Id: I8c0f02b98a2e89c4623c942a0981f01f3fe47da6
This commit is contained in:
@@ -94,7 +94,8 @@ inline void AppendFieldNames(std::vector<std::string>* field_name_vector,
|
|||||||
template <bool>
|
template <bool>
|
||||||
struct CompileAssert {};
|
struct CompileAssert {};
|
||||||
#define COMPILE_ASSERT(expr, msg) \
|
#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 <typename T> struct is_unused { static const bool value = false; };
|
||||||
template <> struct is_unused<Unused> { static const bool value = true; };
|
template <> struct is_unused<Unused> { static const bool value = true; };
|
||||||
@@ -125,4 +126,3 @@ class FirstUnusedType {
|
|||||||
} // namespace wvcdm
|
} // namespace wvcdm
|
||||||
|
|
||||||
#endif // WVCDM_METRICS_FIELD_TUPLES_H_
|
#endif // WVCDM_METRICS_FIELD_TUPLES_H_
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user