[LAD] Bit OT: cleaning code for gcc4

Florian Schirmer florian.schirmer at native-instruments.de
Thu Jun 19 12:29:19 UTC 2008


Hi,

const char * should do the trick...

Best,
   Florian


Julien Claassen wrote:
> Hello everyone!
>    I'm just working on some older code, trying to clean it up for GCC4.2.3. I 
> get a lot of warnings like this:
> CuSE.cxx:321: warning: deprecated conversion from string constant to 'char*'
>    Not this line but still same kind of error:
>    char*  choices[] = {"    [ ] ", "    [*] "};
>    The line 321 WARNING was using the defined choices and another char* array 
> used in a newCDKSelection call.
>    How can I clean this up?
>    Thanks and kindest regards
>         Julien
> 
> --------
> Music was my first love and it will be my last (John Miles)
> 
> ======== FIND MY WEB-PROJECT AT: ========
> http://ltsb.sourceforge.net
> the Linux TextBased Studio guide
> ======= AND MY PERSONAL PAGES AT: =======
> http://www.juliencoder.de
> _______________________________________________
> Linux-audio-dev mailing list
> Linux-audio-dev at lists.linuxaudio.org
> http://lists.linuxaudio.org/mailman/listinfo/linux-audio-dev



More information about the Linux-audio-dev mailing list