Fix compile failure with very strict gcc warning rules on Linux.
authoriposva@chromium.org <iposva@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Tue, 28 Oct 2008 22:47:51 +0000 (22:47 +0000)
committeriposva@chromium.org <iposva@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Tue, 28 Oct 2008 22:47:51 +0000 (22:47 +0000)
TBR=kasperl

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

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@631 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

src/variables.cc
src/variables.h

index 73bfaeabf786f7b5fbf94b39c80e48deaccc7b50..75adc72c92741208da5cb81d3beeda26f2693277 100644 (file)
@@ -88,7 +88,7 @@ void UseCount::Print() {
 // Implementation StaticType.
 
 
-char* StaticType::Type2String(StaticType* type) {
+const char* StaticType::Type2String(StaticType* type) {
   switch (type->kind_) {
     case UNKNOWN:
       return "UNKNOWN";
index bcae166f365d52b2cee78714aba17a7af0908868..21eb235a32109b1a083f2c248a398e1965b70784 100644 (file)
@@ -83,7 +83,7 @@ class StaticType BASE_EMBEDDED {
     kind_ = other->kind_;
   }
 
-  static char* Type2String(StaticType* type);
+  static const char* Type2String(StaticType* type);
 
   // LIKELY_SMI accessors
   void SetAsLikelySmi() {