This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Re: deprecated conversion from string constant to 'char *'
- From: "Timothy C Prince" <tprince at myrealbox dot com>
- To: gdr at integrable-solutions dot net
- Cc: iant at google dot com, gcc-help at gcc dot gnu dot org
- Date: Fri, 07 Jul 2006 21:16:59 +0000
- Subject: Re: Re: deprecated conversion from string constant to 'char *'
-----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