English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
warning:_deprecated_conversion_from_s tring_constant_to_‘char*’
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2008-09-06 (14:20)
From: Roberto Bagnara <bagnara@c...>
Subject: warning:_deprecated_conversion_from_s tring_constant_to_‘char*’

Hi there,

I am seeing zillions of these warnings:

/tmp/camlprim89897a.c:2861: warning: deprecated conversion from string constant to ‘char*’

Apparently, they are due to the fact that the ocamlc-generated file
/tmp/camlprim89897a.c contains

the line

char * caml_names_of_builtin_cprim[] = {

instead of

const char * caml_names_of_builtin_cprim[] = {

All the best,


Prof. Roberto Bagnara
Computer Science Group
Department of Mathematics, University of Parma, Italy