Problem with solaris compiler

P

parag_paul

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.
 
S

Stefan Naewe

static char* nullStr = "null";

static char const * 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.

S.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,583
Members
45,075
Latest member
MakersCBDBloodSupport

Latest Threads

Top