THRIFT-3489 warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
Client: Compiler(general)
Patch: Jens Geyer
diff --git a/compiler/cpp/src/main.cc b/compiler/cpp/src/main.cc
index 5e218b4..1b3b633 100644
--- a/compiler/cpp/src/main.cc
+++ b/compiler/cpp/src/main.cc
@@ -661,8 +661,8 @@
  * If new_form is NULL, old_form is assumed to be a language identifier, such as "cpp"
  * If new_form is not NULL, both arguments are used exactly as given
  */
-void error_unsupported_namespace_decl(char* old_form, char* new_form) {
-  char* remainder = "";
+void error_unsupported_namespace_decl(const char* old_form, const char* new_form) {
+  const char* remainder = "";
   if( new_form == NULL) {
     new_form = old_form;
     remainder = "_namespace";
diff --git a/compiler/cpp/src/main.h b/compiler/cpp/src/main.h
index 98ca754..b0af5a7 100644
--- a/compiler/cpp/src/main.h
+++ b/compiler/cpp/src/main.h
@@ -106,7 +106,7 @@
  * If new_form is NULL, old_form is assumed to be a language identifier, such as "cpp"
  * If new_form is not NULL, both arguments are used exactly as given
  */
-void error_unsupported_namespace_decl(char* old_form, char* new_form = NULL);
+void error_unsupported_namespace_decl(const char* old_form, const char* new_form = NULL);
 
 /**
  * Flex utilities