Re: [PATCH 1/2] staging: lustre: lnet: lnet: do not initialise 0

From: Dmitry Voytik
Date: Fri Oct 24 2014 - 14:57:28 EST


On Sat, Oct 18, 2014 at 09:04:43PM +0400, Sergei Shtylyov wrote:
> Hello.
>
> On 10/18/2014 8:03 AM, Balavasu wrote:
>
> >-static int check_routers_before_use = 0;
> >+static int check_routers_before_use = {0};
>
> Eh? I thought {} is only for arrays/structures...

It seems like this is from C++. In C++11 you can even drop '=' like
this:
int i {0};
;)

WBR,
voyt
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/