From: Stephane Glondu <steph@glondu.net>
Date: Thu, 21 Apr 2011 18:39:57 +0200
Subject: Declare primitive name table as const char *

This avoids lots of warnings when compiling with g++...

Signed-off-by: Stephane Glondu <steph@glondu.net>
---
 bytecomp/symtable.ml |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/bytecomp/symtable.ml b/bytecomp/symtable.ml
index d6ecc94..37def29 100644
--- a/bytecomp/symtable.ml
+++ b/bytecomp/symtable.ml
@@ -123,7 +123,7 @@ let output_primitive_table outchan =
     fprintf outchan "  %s,\n" prim.(i)
   done;
   fprintf outchan "  (primitive) 0 };\n";
-  fprintf outchan "char * caml_names_of_builtin_cprim[] = {\n";
+  fprintf outchan "const char * caml_names_of_builtin_cprim[] = {\n";
   for i = 0 to Array.length prim - 1 do
     fprintf outchan "  \"%s\",\n" prim.(i)
   done;
-- 
