L
Lynn McGuire
I just upgraded my web server from FreeBSD version 6.2 to version
7.2. I am now getting the warning message from gcc:
gen2wkps.cpp:400: warning: deprecated conversion from string constant to 'char*'
when I compile my server scripts. Line 400 that produced this
warning is:
cgiFormInteger ("computerid", &computerID, 0);
And the prototype is:
extern cgiFormResultType cgiFormInteger(
char *name, int *result, int defaultV);
Are immediate strings changing from "char *" to "const char *" in
the C++ standard ? Not that it matters a big deal but I am just
wondering. This will force me to use const more often and think a
little more about the effects of my programming.
My version of gcc is:
Using built-in specs.
Target: i386-undermydesk-freebsd
Configured with: FreeBSD/i386 system compiler
Thread model: posix
gcc version 4.2.1 20070719 [FreeBSD]
Sincerely,
Lynn McGuire
7.2. I am now getting the warning message from gcc:
gen2wkps.cpp:400: warning: deprecated conversion from string constant to 'char*'
when I compile my server scripts. Line 400 that produced this
warning is:
cgiFormInteger ("computerid", &computerID, 0);
And the prototype is:
extern cgiFormResultType cgiFormInteger(
char *name, int *result, int defaultV);
Are immediate strings changing from "char *" to "const char *" in
the C++ standard ? Not that it matters a big deal but I am just
wondering. This will force me to use const more often and think a
little more about the effects of my programming.
My version of gcc is:
Using built-in specs.
Target: i386-undermydesk-freebsd
Configured with: FreeBSD/i386 system compiler
Thread model: posix
gcc version 4.2.1 20070719 [FreeBSD]
Sincerely,
Lynn McGuire