Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(185)

Side by Side Diff: webrtc/base/common.h

Issue 1399313002: Make the WARN_UNUSED_RESULT macro match the Chromium one. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698