On Thu, Oct 25, 2012 at 9:10 PM, Maarten Brock <sourceforge.brock@dse.nl> wrote:
>>> You can use -Wwrite-strings command line option to turn "warning:
>>> initialization discards ‘const’ qualifier from pointer target type
>>> [enabled by default]" warnings on or use -fno-const-strings to put
>>> strings in normal (no ro) section.
>
>> And which of these options are used in our host regression tests?
>> Because I don't see the warning.
>
> None.

I don't get it. Will using -Wwrite-strings enable or disable the warning?

Using -Wwrite-strings will enable the warning.
 
And is it enabled by default or not?

No, it is not.
 
And if so, what is then enabled? The
option or the warning? Because how I read the above statement is that the
option is enabled by default and it should be generating the warning.

The "[enabled by default]" is part of warning message (I just copy&pasted the complete warning message). I also don't understand what it means since the warning is NOT enabled by default but explicitly by -Wwrite-strings option.

Borut