Re: Solaris is complaining about the following
- From: Eric Sosman <esosman@xxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 28 Sep 2007 08:10:22 -0400
parag_paul@xxxxxxxxxxx wrote:
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.
Two-and-a-half suggestions:
1) static const char* nullStr = "null";
2) Use a C compiler rather than a C++ compiler.
2a) ... or take further questions to comp.lang.c++
--
Eric Sosman
esosman@xxxxxxxxxxxxxxxxxxxx
.
- Follow-Ups:
- Re: Solaris is complaining about the following
- From: Flash Gordon
- Re: Solaris is complaining about the following
- References:
- Solaris is complaining about the following
- From: parag_paul@xxxxxxxxxxx
- Solaris is complaining about the following
- Prev by Date: Re: Warnings in lcc-win
- Next by Date: Re: Set all bits to 1 in an array of raw bytes
- Previous by thread: Solaris is complaining about the following
- Next by thread: Re: Solaris is complaining about the following
- Index(es):
Relevant Pages
|
|