Reviewers: Sven Panne,

Description:
Fix trivial error when building with clang.

$ ninja -C out/Debug
...

../../src/d8.cc:171:11: error: unused variable 'MB'
[-Werror,-Wunused-const-variable]
const int MB = 1024 * 1024;
          ^
          1 error generated.

[email protected]

Please review this at https://codereview.chromium.org/105833008/

SVN Base: git://github.com/v8/v8.git@master

Affected files (+1, -2 lines):
  M src/d8.cc


Index: src/d8.cc
diff --git a/src/d8.cc b/src/d8.cc
index 2b5b996b1925aea3a049d8fb6cffcd80a9907d69..eb70f3eb472efcde131278766e5934cd867a15ed 100644
--- a/src/d8.cc
+++ b/src/d8.cc
@@ -168,10 +168,9 @@ ShellOptions Shell::options;
 const char* Shell::kPrompt = "d8> ";


+#ifndef V8_SHARED
 const int MB = 1024 * 1024;

-
-#ifndef V8_SHARED
 bool CounterMap::Match(void* key1, void* key2) {
   const char* name1 = reinterpret_cast<const char*>(key1);
   const char* name2 = reinterpret_cast<const char*>(key2);


--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to