browse: forums | FAQ
Connecting Tech Pros Worldwide

Hey there! Do you need C / C++ help?

Get answers from our community of C / C++ experts on BYTES! It's free.

Problem with solaris compiler

parag_paul@hotmail.com
Guest
 
Posts: n/a
#1: Sep 28 '07
static char* nullStr = "null";

This line in the solaris mode64 ( cc -m64 flag, gives out the
following warning message )

"virvpirw.cc", line 371: Warning: String literal converted to char* in
initialization.
1 Warning(s) detected.

Now our builds are strict and dont allow this warning too in the
building. Can we remove this by any other way.




Stefan Naewe
Guest
 
Posts: n/a
#2: Sep 28 '07

re: Problem with solaris compiler


On 9/28/2007 2:41 PM, parag_paul@hotmail.com wrote:
Quote:
static char* nullStr = "null";
static char const * nullStr = "null";
Quote:
>
This line in the solaris mode64 ( cc -m64 flag, gives out the
following warning message )
>
"virvpirw.cc", line 371: Warning: String literal converted to char* in
initialization.
1 Warning(s) detected.
>
Now our builds are strict and dont allow this warning too in the
building. Can we remove this by any other way.
>
S.
--
Stefan Naewe stefan dot naewe at atlas-elektronik dot com
Don't top-post http://www.catb.org/~esr/jargon/html/T/top-post.html
Plain text mails only, please http://www.expita.com/nomime.html
Closed Thread