From fd5bff856e8c92a94bd98debc28ad4fe3e917962 Mon Sep 17 00:00:00 2001 From: "svenpanne@chromium.org" Date: Thu, 28 Apr 2011 21:02:14 +0000 Subject: [PATCH] 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 --- src/arm/code-stubs-arm.cc | 2 +- src/ia32/code-stubs-ia32.cc | 2 +- src/x64/code-stubs-x64.cc | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/arm/code-stubs-arm.cc b/src/arm/code-stubs-arm.cc index d298c4034..d523bc4bd 100644 --- a/src/arm/code-stubs-arm.cc +++ b/src/arm/code-stubs-arm.cc @@ -1696,7 +1696,7 @@ const char* TypeRecordingUnaryOpStub::GetName() { kMaxNameLength); if (name_ == NULL) return "OOM"; const char* op_name = Token::Name(op_); - const char* overwrite_name; + const char* overwrite_name = NULL; // Make g++ happy. switch (mode_) { case UNARY_NO_OVERWRITE: overwrite_name = "Alloc"; break; case UNARY_OVERWRITE: overwrite_name = "Overwrite"; break; diff --git a/src/ia32/code-stubs-ia32.cc b/src/ia32/code-stubs-ia32.cc index 70839c9e9..834f09d16 100644 --- a/src/ia32/code-stubs-ia32.cc +++ b/src/ia32/code-stubs-ia32.cc @@ -533,7 +533,7 @@ const char* TypeRecordingUnaryOpStub::GetName() { kMaxNameLength); if (name_ == NULL) return "OOM"; 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_) { case UNARY_NO_OVERWRITE: overwrite_name = "Alloc"; break; case UNARY_OVERWRITE: overwrite_name = "Overwrite"; break; diff --git a/src/x64/code-stubs-x64.cc b/src/x64/code-stubs-x64.cc index a4bfc8326..004800e0a 100644 --- a/src/x64/code-stubs-x64.cc +++ b/src/x64/code-stubs-x64.cc @@ -646,7 +646,7 @@ const char* TypeRecordingUnaryOpStub::GetName() { kMaxNameLength); if (name_ == NULL) return "OOM"; const char* op_name = Token::Name(op_); - const char* overwrite_name; + const char* overwrite_name = NULL; // Make g++ happy. switch (mode_) { case UNARY_NO_OVERWRITE: overwrite_name = "Alloc"; break; case UNARY_OVERWRITE: overwrite_name = "Overwrite"; break; -- 2.34.1