Re: Annoying warning when compiling with ACLIC

From: Rene Brun <Rene.Brun_at_cern.ch>
Date: Thu, 26 Mar 2009 07:25:38 +0100


Constantin,

As indicated by Benjamin, you are using a deprecated feature of C++ and you should change your code to valid C++ if you want to run with the latest compilers.

Rene

Constantin Loizides wrote:
> Hi Benjmin,
> thanks for you answer.
> This will be fun to go through hundreds of macros...
>
> Is there really no other way?
>
> Constantin
>
> Benjamin Bannier wrote:
>> Hi,
>>
>> On Wed, 25 Mar 2009 23:47:51 +0100
>> Constantin Loizides <loizides_at_MIT.EDU> wrote:
>>
>>
>>> Warning: deprecated conversion from string constant to ‘char*’
>>>
>>> Is there anyway (other than increasing the error level) to switch
>>> this off?
>>>
>>
>> you should fix this in your macros and declare your C strings as
>> const char* s = "Your text here";
>> instead of char* s = "Your text here";
>>
>>
>> HTH,
>>
>> Benjamin
>>
>>
>
Received on Thu Mar 26 2009 - 07:25:48 CET

This archive was generated by hypermail 2.2.0 : Thu Mar 26 2009 - 11:50:07 CET