|
Back
Midas
Rome
Roody
Rootana
|
Midas DAQ System |
Not logged in |
|
|
07 Sep 2009, Exaos Lee, Forum, deprecated conversion from string constant to ‘char*’
|
27 Sep 2009, Konstantin Olchanski, Forum, deprecated conversion from string constant to ‘char*’
|
27 Sep 2009, Exaos Lee, Forum, deprecated conversion from string constant to ‘char*’
|
19 Oct 2009, Exaos Lee, Forum, It' better to fix this warnings
|
10 Nov 2009, Stefan Ritt, Forum, It' better to fix this warnings
|
|
Message ID: 646
Entry time: 27 Sep 2009
In reply to: 641
Reply to this: 647
664
|
Author: |
Konstantin Olchanski |
Topic: |
Forum |
Subject: |
deprecated conversion from string constant to ‘char*’ |
|
|
> I encountered many warning while building MIDAS (svn r4556). Please see the
> attached log file. Most of them are caused by type conversion from string to
> "char*".
> Though I can ignore all the warning without any problem, I still hate to see
> them. :-)
There is no "type conversions". The compiler is whining about code like this:
/* data type names */
static char *tid_name[] = {
"NULL",
"BYTE",
...
I guess we should keep the compiler happy and make them "static const char*".
BTW, my compiler is SL5.2 gcc-4.1.2 and it does not complain. What's your compiler?
K.O. |