[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <2f3bf9a60811120738s6082c9f1jdcc95820e3770b40@mail.gmail.com>
Date: Wed, 12 Nov 2008 17:38:17 +0200
From: "Dotan Barak" <dotanba@...il.com>
To: "Andy Whitcroft" <apw@...dowen.org>
Cc: linux-kernel@...r.kernel.org
Subject: Re: checkpatch.pl print the line twice when trailing statements in the same line
Thanks.
I noticed another issue:
for the code line:
return (int)0;
I get the following error message:
ERROR: return is not a function, parentheses are not required.
Thanks
Dotan
On Wed, Nov 12, 2008 at 3:54 PM, Andy Whitcroft <apw@...dowen.org> wrote:
> On Fri, Oct 31, 2008 at 08:24:14AM +0000, Andy Whitcroft wrote:
>> On Mon, Oct 20, 2008 at 08:51:38PM +0200, Dotan Barak wrote:
>> > Hi.
>> >
>> > I executed checkpatch.pl version 0.24 on a file and i noticed that when
>> > a tailing statement is being declared at the same line with "while, checkpatch
>> > prints the erroneous line twice.
>> >
>> > Here is an example of the output:
>> >
>> > ERROR: trailing statements should be on next line
>> > #651: FILE: idbm.c:651:
>> > + while (*nl && isspace(c = *nl)) nl++;
>> > + while (*nl && isspace(c = *nl)) nl++;
>> >
>> > Is this is the expected behavior?
>>
>> No that would definintaly not be expected. Will add it to my TODO list.
>
> Ok, this is now fixed up and should be in my next batch of updates.
>
> -apw
>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists