[Hide Content]From: Stephane Glondu <steph@glondu.net>
Date: Fri, 20 Aug 2010 19:45:13 +0200
Subject: [PATCH] Declare caml_names_of_builtin_cprim as const char *
This patch fixes many warnings that appear when compiling custom
runtimes 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;
--