[PATCH] configure.ac: don't use -Wmisleading-indentation compiler option (GCC11)

Rémi Bernon rbernon at codeweavers.com
Mon Sep 27 12:49:30 CDT 2021


On 9/27/21 7:30 PM, Zebediah Figura wrote:
> On 9/27/21 12:27 PM, Eric Pouech wrote:
>> I'm not 100% sure about the right fix:
>> - disable the warning altogether (that's what this patch does), but we
>>    won't report other *real* indentation errors. To be frank, I haven't
>>    looked at the hundred of lines of warnings to check if one pops up.
>> - reformat the code in tests. note that
>>      todo_wine {
>>     ok(tst, "...");
>>      }
>>    or
>>      todo_wine ok(tst, "...");
>>    or
>>      todo_wine
>>     ok(tst, "...");
>>    don't generate warnings. but first one defeats the one liner, and the
>>    second and third ones don't preserve the line of the test unchanged
>>    when the todo is resolved
> 
> Personally I think that's a good thing; that allows you to use git-blame 
> to find out which commit fixed an ok() message, if any.
> 

It doesn't warns on cases like:

   todo_wine
   ok(...)

Only when the todo_wine is unindented from the next line, and the second 
next line is on the same level, like:

   todo_wine
     ok(...)
     ok(...)

Cheers,
-- 
Rémi Bernon <rbernon at codeweavers.com>



More information about the wine-devel mailing list