Index: base/compiler_specific.h |
diff --git a/base/compiler_specific.h b/base/compiler_specific.h |
index 02603df584599bf7b92d4384a0c2912402307b7c..d5d38b7a20289810df4cd5d7c9d8d610b15cf5da 100644 |
--- a/base/compiler_specific.h |
+++ b/base/compiler_specific.h |
@@ -119,7 +119,9 @@ |
// Use like: |
// int foo() WARN_UNUSED_RESULT; |
// To explicitly ignore a result, see |ignore_result()| in base/macros.h. |
-#if defined(COMPILER_GCC) |
+// TODO(dcheng): Update //third_party/webrtc's macro definition to match. |
+#undef WARN_UNUSED_RESULT |
+#if defined(COMPILER_GCC) || defined(__clang__) |
#define WARN_UNUSED_RESULT __attribute__((warn_unused_result)) |
#else |
#define WARN_UNUSED_RESULT |