deprecated conversion from string constant to 'char *'
Timothy C Prince
tprince@myrealbox.com
Fri Jul 7 21:17:00 GMT 2006
-----Original Message-----
From: Gabriel Dos Reis <gdr@integrable-solutions.net>
To: tprince@myrealbox.com
Date: 07 Jul 2006 17:52:31 +0200
Subject: Re: deprecated conversion from string constant to 'char *'
Tim Prince <timothyprince@sbcglobal.net> writes:
| Even in your example, gcc stops without making a .o file. I did find
| that correcting __all__ the relevant prototypes to 'const char *' fixed
| my problem. I had missed one tucked away in a long list.
| Another compiler which I use frequently, which claims a high degree of
| gcc compatibility, is unable to produce any warning.
Are you sure you're using FSF GCC?
-- Gaby
gcc built from last Saturday's post on gcc.gnu.org/pub/gcc/snapshots
I've seen remarks about that not being a reliable source for FSF gcc. If those aren't good to use, why not offer something better?
A colleague tried the case with another colleague's build of gcc-4.2 from a few weeks ago. His diagnostics match what I get with g++ -m32.
Tim Prince
More information about the Gcc-help
mailing list