| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2004 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2004 The WebRTC Project Authors. All rights reserved. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
| 5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
| 6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ | 9 */ |
| 10 | 10 |
| (...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 183 #define FORCE_INLINE | 183 #define FORCE_INLINE |
| 184 #endif | 184 #endif |
| 185 | 185 |
| 186 // Annotate a function indicating the caller must examine the return value. | 186 // Annotate a function indicating the caller must examine the return value. |
| 187 // Use like: | 187 // Use like: |
| 188 // int foo() WARN_UNUSED_RESULT; | 188 // int foo() WARN_UNUSED_RESULT; |
| 189 // To explicitly ignore a result, see |ignore_result()| in <base/basictypes.h>. | 189 // To explicitly ignore a result, see |ignore_result()| in <base/basictypes.h>. |
| 190 // TODO(ajm): Hack to avoid multiple definitions until the base/ of webrtc and | 190 // TODO(ajm): Hack to avoid multiple definitions until the base/ of webrtc and |
| 191 // libjingle are merged. | 191 // libjingle are merged. |
| 192 #if !defined(WARN_UNUSED_RESULT) | 192 #if !defined(WARN_UNUSED_RESULT) |
| 193 #if defined(__GNUC__) | 193 #if defined(__GNUC__) || defined(__clang__) |
| 194 #define WARN_UNUSED_RESULT __attribute__((warn_unused_result)) | 194 #define WARN_UNUSED_RESULT __attribute__((warn_unused_result)) |
| 195 #else | 195 #else |
| 196 #define WARN_UNUSED_RESULT | 196 #define WARN_UNUSED_RESULT |
| 197 #endif | 197 #endif |
| 198 #endif // WARN_UNUSED_RESULT | 198 #endif // WARN_UNUSED_RESULT |
| 199 | 199 |
| 200 #endif // WEBRTC_BASE_COMMON_H_ // NOLINT | 200 #endif // WEBRTC_BASE_COMMON_H_ // NOLINT |
| OLD | NEW |