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

Unified Diff: base/compiler_specific.h

Issue 7050022: Comment on WARN_UNUSED_RESULT about how to defeat it. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/compiler_specific.h
diff --git a/base/compiler_specific.h b/base/compiler_specific.h
index 99e4f8e6b67e583b14884416f0c47fcd95337d20..ebc557ab3f6fcc28fcab5da30aad5081cb4e5655 100644
--- a/base/compiler_specific.h
+++ b/base/compiler_specific.h
@@ -111,6 +111,7 @@
// Annotate a function indicating the caller must examine the return value.
// Use like:
// int foo() WARN_UNUSED_RESULT;
+// To explicitly ignore a result, see |ignore_result()| in basic_types.h.
Mark Mentovai 2011/05/19 23:17:13 Say <base/basictypes.h>, with no underscore.
#if defined(COMPILER_GCC)
#define WARN_UNUSED_RESULT __attribute__((warn_unused_result))
#else
« 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