Languages and Scripting
cancel
Showing results for 
Search instead for 
Did you mean: 

aCC compiler string literal to char* conversion

 
Highlighted
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
Highlighted
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