From 3402bcda563ae445d8f0dc9afbc17d32254e5d2e Mon Sep 17 00:00:00 2001 From: dcheng Date: Mon, 12 Oct 2015 16:28:16 -0700 Subject: [PATCH] Make the WARN_UNUSED_RESULT macro match the Chromium one. BUG=none Review URL: https://codereview.webrtc.org/1399313002 Cr-Commit-Position: refs/heads/master@{#10259} --- webrtc/base/common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webrtc/base/common.h b/webrtc/base/common.h index e39b75daf4..e615c7669a 100644 --- a/webrtc/base/common.h +++ b/webrtc/base/common.h @@ -190,7 +190,7 @@ inline bool ImplicitCastToBool(bool result) { return result; } // TODO(ajm): Hack to avoid multiple definitions until the base/ of webrtc and // libjingle are merged. #if !defined(WARN_UNUSED_RESULT) -#if defined(__GNUC__) +#if defined(__GNUC__) || defined(__clang__) #define WARN_UNUSED_RESULT __attribute__((warn_unused_result)) #else #define WARN_UNUSED_RESULT