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

Unified Diff: runtime/platform/assert.h

Issue 24944003: Prefix compile-time typedef checks with __attribute__((unused)) (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Review fix Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | runtime/platform/globals.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/platform/assert.h
diff --git a/runtime/platform/assert.h b/runtime/platform/assert.h
index 3b5f32e6e4609f460bf9dd980b26a9482fea1997..73193baa3c1112b6209ffa6843221b048c1954a0 100644
--- a/runtime/platform/assert.h
+++ b/runtime/platform/assert.h
@@ -289,8 +289,8 @@ template <bool>
struct CompileAssert {
};
-#define COMPILE_ASSERT(expr, msg) \
- typedef CompileAssert<(static_cast<bool>(expr))> \
+#define COMPILE_ASSERT(expr, msg) \
+ DART_UNUSED typedef CompileAssert<(static_cast<bool>(expr))> \
msg[static_cast<bool>(expr) ? 1 : -1]
« no previous file with comments | « no previous file | runtime/platform/globals.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698