This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: RFC: -Wall by default


On Wed, Apr 4, 2012 at 7:19 AM, Richard Guenther
<richard.guenther@gmail.com> wrote:
> On Wed, Apr 4, 2012 at 2:14 PM, Andrew Haley <aph@redhat.com> wrote:
>> On 04/04/2012 01:11 PM, Gabriel Dos Reis wrote:
>>> On Wed, Apr 4, 2012 at 7:08 AM, Andrew Haley <aph@redhat.com> wrote:
>>>> On 04/04/2012 10:44 AM, Gabriel Dos Reis wrote:
>>>>> For GCC-4.8, I would like to turn on -Wall by default.
>>>>> Comments?
>>>>
>>>> Umm, should this really happen at exactly the same time as C++
>>>> by default?
>>>
>>> I consider it a separate issue.
>>>
>>> -Wall is a primary a service to GCC users (which GCC is already
>>> using internally.)
>>>
>>> Switching to compile with C++ compiler is an internal
>>> compiler infrastructure issue that should be independent
>>> of the services we provide to the broader C++ community.
>>
>> It's certainly a separate issue, but the set of C++ warnings is
>> very different, and to avoid unnecessary chaos it might be good
>> to stage the changes.
>
> We already use -Wall for both the stage1 C and the stage2+ C++ compiles.
> Only stage2+ use -Werror though.

Exactly.  I am suggesting to turn on -Werror by default.

-- Gaby


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]