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

Unified Diff: chrome/installer/mini_installer/mini_string.h

Issue 1248483002: clang/win: Fix another -Wunused-local-typedef warning. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 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: chrome/installer/mini_installer/mini_string.h
diff --git a/chrome/installer/mini_installer/mini_string.h b/chrome/installer/mini_installer/mini_string.h
index 199c694369bd0ad4e243aeda41976b3c3b941795..52833a8087b897905b21a6cf6cc8287cc00ddfd4 100644
--- a/chrome/installer/mini_installer/mini_string.h
+++ b/chrome/installer/mini_installer/mini_string.h
@@ -6,11 +6,8 @@
#define CHROME_INSTALLER_MINI_INSTALLER_MINI_STRING_H_
#ifndef COMPILE_ASSERT
-// COMPILE_ASSERT macro borrowed from basictypes.h
-template <bool>
-struct CompileAssert {};
-#define COMPILE_ASSERT(expr, msg) \
- typedef CompileAssert<(bool(expr))> msg[bool(expr) ? 1 : -1]
+// COMPILE_ASSERT macro borrowed from macros.h
+#define COMPILE_ASSERT(expr, msg) static_assert(expr, #msg)
#endif
namespace mini_installer {
« 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