This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Please, take '-Wmisleading-indentation' out of -Wall
- From: NightStrike <nightstrike at gmail dot com>
- To: Manuel LÃpez-IbÃÃez <lopezibanez at gmail dot com>
- Cc: David Malcolm <dmalcolm at redhat dot com>, Antonio Diaz Diaz <antonio at gnu dot org>, "gcc at gcc dot gnu dot org" <gcc at gcc dot gnu dot org>
- Date: Wed, 4 May 2016 18:16:30 -0400
- Subject: Re: Please, take '-Wmisleading-indentation' out of -Wall
- Authentication-results: sourceware.org; auth=none
- References: <572A2029 dot 6030106 at gnu dot org> <1462386029 dot 14738 dot 43 dot camel at redhat dot com> <572A4F0A dot 2070304 at gmail dot com>
On Wed, May 4, 2016 at 3:35 PM, Manuel LÃpez-IbÃÃez
<lopezibanez@gmail.com> wrote:
> On 04/05/16 19:20, David Malcolm wrote:
>>
>> On Wed, 2016-05-04@18:15 +0200, Antonio Diaz Diaz wrote:
>>>
>>> - It can't be portably disabled; older versions of gcc do not
>>> accept
>>> '-Wno-misleading-indentation'. (At least 4.1.2 does not accept
>>> it).
>>
>>
>> FWIW "-Wall -Wno-misleading-indentation" works for me with gcc 4.8.3
>
>
> It should work since GCC 4.4 (7 years old). See
> https://gcc.gnu.org/wiki/FAQ#wnowarning
4.1.2 is the system compiler for RHEL5, which is most likely why he
needs it (EL5 is still actively maintained)