On Mon, 24 Sep 2012, Jon Trulson wrote:

> On Mon, 24 Sep 2012, Marcin Cieslak wrote:
> 
> > Hello,
> > 
> > When building dtmail with gcc 4.2 I get the following warning:
> > 
> 
> Hmmm.  Yes we could ignore the warning, but I'd suggest we don't if it
> has the potential to create grief in the future...

>From the GCC info file:

`-Wwrite-strings'
     When compiling C, give string constants the type `const
     char[LENGTH]' so that copying the address of one into a
     non-`const' `char *' pointer will get a warning; when compiling
     C++, warn about the deprecated conversion from string literals to
     `char *'.  This warning, by default, is enabled for C++ programs.
     These warnings will help you find at compile time code that can
     try to write into a string constant, but only if you have been
     very careful about using `const' in declarations and prototypes.
     Otherwise, it will just be a nuisance; this is why we did not make
     `-Wall' request these warnings.

We are not "careful about using `const' in declarations
and prototypes". This would mean also re-defining of many
of the internal interfaces. So right now it's a nuisance,
as the info file says.

That said I would be happy to find out what's the "right" place
to put such options. Shall we create new "DefaultCWarningLevel"
and "DefaultCplusplusWarningLevel" imake variables?

//Marcin

------------------------------------------------------------------------------
How fast is your code?
3 out of 4 devs don\\\'t know how their code performs in production.
Find out how slow your code is with AppDynamics Lite.
http://ad.doubleclick.net/clk;262219672;13503038;z?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
_______________________________________________
cdesktopenv-devel mailing list
cdesktopenv-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cdesktopenv-devel

Reply via email to