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

Unified Diff: src/utils.h

Issue 3274008: Get gcc to check that we don't ignore return values of functions that can... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 10 years, 4 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 | « src/stub-cache.h ('k') | test/cctest/test-heap.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/utils.h
===================================================================
--- src/utils.h (revision 5365)
+++ src/utils.h (working copy)
@@ -951,6 +951,13 @@
return BitCast<Dest>(reinterpret_cast<uintptr_t>(source));
}
+
+#ifdef __GNUC__
Vyacheslav Egorov (Chromium) 2010/08/30 16:31:25 1) GCC reference manual mentions this attribute st
+#define NOIGNORE __attribute__ ((warn_unused_result))
+#else
+#define NOIGNORE
+#endif
+
} } // namespace v8::internal
#endif // V8_UTILS_H_
« no previous file with comments | « src/stub-cache.h ('k') | test/cctest/test-heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698