Operating System - HP-UX
1748136 Members
3785 Online
108758 Solutions
New Discussion

Re: aCC compiler string literal to char* conversion

 
Leif Halvarsson_2
Honored Contributor

aCC compiler string literal to char* conversion

I am moving my C++ library from SUN to HP compiling it with the aCC compiler.
I get several fatal errors where I have not been strict in mixing char*, const char* and string literals. Obviously the SUN compiler is more forgiving.
"Implicit conversion of string literal to char* is deprecated".
I can't find "deprecated" in the manual. Is there any option to make the compiler a little more forgiving on this point?
1 REPLY 1
Steven Gillard_2
Honored Contributor

Re: aCC compiler string literal to char* conversion

Since its just a warning you can use the +W option to suppress it. The warning number is required as an argument, which is 389 eg:

$ aCC +W389 program.C

Regards,
Steve