Home » Developer & Programmer » Precompilers, OCI & OCCI » String literal converted to char* in formal argument 2 in call to sqlbuft(void**, char*)
String literal converted to char* in formal argument 2 in call to sqlbuft(void**, char*) [message #93522] Mon, 29 April 2002 07:03 Go to next message
Giridhar
Messages: 38
Registered: May 2001
Member
Hai,
I am getting the following warning while compiling my pro*c program.
Even though its a warning, i would like to know why its coming and how i can avoid it.
====
String literal converted to char* in formal argument 2 in call to sqlbuft(void**, char*)
===

Kindly help me in resolving this problem.

Thanks,
Giridhar
Re: String literal converted to char* in formal argument 2 in call to sqlbuft(void**, char*) [message #93555 is a reply to message #93522] Fri, 14 June 2002 02:30 Go to previous message
Peter Hitchman
Messages: 4
Registered: June 2002
Junior Member
Hi,
Is sqlbuft a Oracle routine or your code?

If its yours and the second parameter is never
changed, altering the signature to be sqlbuft(void**, const char*) will remove the warnings.

The compiler is complaining because you are passing
a literal that cannot be modified to a function that
could in theory try to alter it.

Regards

Pete

[[END]]
Previous Topic: Re: Do I have to recompile ProC programs when I upgrade the db?
Next Topic: Delete everything from a table
Goto Forum:
  


Current Time: Tue Apr 16 12:36:51 CDT 2024