Fixed compilation breakage due to warnings. TBR...

Review URL: http://codereview.chromium.org/6880286

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@7711 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent e04dd719
...@@ -1696,7 +1696,7 @@ const char* TypeRecordingUnaryOpStub::GetName() { ...@@ -1696,7 +1696,7 @@ const char* TypeRecordingUnaryOpStub::GetName() {
kMaxNameLength); kMaxNameLength);
if (name_ == NULL) return "OOM"; if (name_ == NULL) return "OOM";
const char* op_name = Token::Name(op_); const char* op_name = Token::Name(op_);
const char* overwrite_name; const char* overwrite_name = NULL; // Make g++ happy.
switch (mode_) { switch (mode_) {
case UNARY_NO_OVERWRITE: overwrite_name = "Alloc"; break; case UNARY_NO_OVERWRITE: overwrite_name = "Alloc"; break;
case UNARY_OVERWRITE: overwrite_name = "Overwrite"; break; case UNARY_OVERWRITE: overwrite_name = "Overwrite"; break;
......
...@@ -533,7 +533,7 @@ const char* TypeRecordingUnaryOpStub::GetName() { ...@@ -533,7 +533,7 @@ const char* TypeRecordingUnaryOpStub::GetName() {
kMaxNameLength); kMaxNameLength);
if (name_ == NULL) return "OOM"; if (name_ == NULL) return "OOM";
const char* op_name = Token::Name(op_); const char* op_name = Token::Name(op_);
const char* overwrite_name = NULL; // Make g++ on Mac happy. const char* overwrite_name = NULL; // Make g++ happy.
switch (mode_) { switch (mode_) {
case UNARY_NO_OVERWRITE: overwrite_name = "Alloc"; break; case UNARY_NO_OVERWRITE: overwrite_name = "Alloc"; break;
case UNARY_OVERWRITE: overwrite_name = "Overwrite"; break; case UNARY_OVERWRITE: overwrite_name = "Overwrite"; break;
......
...@@ -646,7 +646,7 @@ const char* TypeRecordingUnaryOpStub::GetName() { ...@@ -646,7 +646,7 @@ const char* TypeRecordingUnaryOpStub::GetName() {
kMaxNameLength); kMaxNameLength);
if (name_ == NULL) return "OOM"; if (name_ == NULL) return "OOM";
const char* op_name = Token::Name(op_); const char* op_name = Token::Name(op_);
const char* overwrite_name; const char* overwrite_name = NULL; // Make g++ happy.
switch (mode_) { switch (mode_) {
case UNARY_NO_OVERWRITE: overwrite_name = "Alloc"; break; case UNARY_NO_OVERWRITE: overwrite_name = "Alloc"; break;
case UNARY_OVERWRITE: overwrite_name = "Overwrite"; break; case UNARY_OVERWRITE: overwrite_name = "Overwrite"; break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment