Re: Annoying warning when compiling with ACLIC

From: Benjamin Bannier <benjamin.bannier_at_stonybrook.edu>
Date: Wed, 25 Mar 2009 19:12:12 -0400


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 - 00:12:21 CET

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