bug-apl
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-apl] Misleading indentation


From: Juergen Sauermann
Subject: Re: [Bug-apl] Misleading indentation
Date: Sat, 6 May 2017 17:12:10 +0200
User-agent: Mozilla/5.0 (X11; Linux i686; rv:45.0) Gecko/20100101 Thunderbird/45.2.0

Hi Kacper,

thanks, maybe fixed in SVN 942. No idea what the compiler means, though.

Maybe I should respond with
-Werror=misleading-warning-since-g++6.x

/// Jürgen

 
On 05/06/2017 12:24 PM, Kacper Gutowski wrote:
Attempting to compile r941 with g++ 6.3.0 fails due to it not liking
your coding style and -Werror:

Command.cc: In static member function ‘static bool Command::check_params(std::ostream&, const char*, int, const char*)’:
Command.cc:163:20: error: this ‘if’ clause does not guard... [-Werror=misleading-indentation]
          case '.': if (a[1] == '.' && a[2] == '.')
                    ^~
Command.cc:164:56: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘if’
                       many = true;                     continue;  // ...
                                                        ^~~~~~~~

-k




reply via email to

[Prev in Thread] Current Thread [Next in Thread]