Index: base/compiler_specific.h |
diff --git a/base/compiler_specific.h b/base/compiler_specific.h |
index 66dc80db3198a9beb753d1073ffe982ac874ca06..a81afb57353182a978644e3704bcfc97ad024051 100644 |
--- a/base/compiler_specific.h |
+++ b/base/compiler_specific.h |
@@ -101,7 +101,7 @@ |
// Annotate a typedef or function indicating it's ok if it's not used. |
// Use like: |
// typedef Foo Bar ALLOW_UNUSED_TYPE; |
-#if defined(COMPILER_GCC) |
+#if defined(COMPILER_GCC) || defined(__clang__) |
#define ALLOW_UNUSED_TYPE __attribute__((unused)) |
#else |
#define ALLOW_UNUSED_TYPE |