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}
This commit is contained in:
parent
325d414e8c
commit
3402bcda56
@ -190,7 +190,7 @@ inline bool ImplicitCastToBool(bool result) { return result; }
|
|||||||
// TODO(ajm): Hack to avoid multiple definitions until the base/ of webrtc and
|
// TODO(ajm): Hack to avoid multiple definitions until the base/ of webrtc and
|
||||||
// libjingle are merged.
|
// libjingle are merged.
|
||||||
#if !defined(WARN_UNUSED_RESULT)
|
#if !defined(WARN_UNUSED_RESULT)
|
||||||
#if defined(__GNUC__)
|
#if defined(__GNUC__) || defined(__clang__)
|
||||||
#define WARN_UNUSED_RESULT __attribute__((warn_unused_result))
|
#define WARN_UNUSED_RESULT __attribute__((warn_unused_result))
|
||||||
#else
|
#else
|
||||||
#define WARN_UNUSED_RESULT
|
#define WARN_UNUSED_RESULT
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user