2008-11-16 08:42:19

by Dotan Barak

[permalink] [raw]
Subject: False positive in checkpatch on pointers to typedefs?

Hi.

Executing checkpatch version 0.24 of the following c program produces
the following error message:

ERROR: need consistent spacing around '*' (ctx:WxV)
#7: FILE: dotan.c:7:
+ my_int *time_arr[SIZE];


<code start>
#define SIZE 10

typedef int my_int;

int main()
{
my_int *time_arr[SIZE];

return 0;
}
<code end>


I can't find anything wrong in this C code.

Can you please check this issue?

Thanks
Dotan