[PATCH] mostly clang warnings

Jeremy Allison jra at samba.org
Tue Oct 18 19:54:24 UTC 2016


On Tue, Oct 18, 2016 at 09:26:08PM +0200, Volker Lendecke wrote:
> Jeremy Allison <jra at samba.org> writes:
> 
> > On Tue, Oct 18, 2016 at 11:18:48AM -0700, Jeremy Allison wrote:
> > struct smb2_handle foo = {{ 0 }};
> 
> Does foo = {0, 0}; work?

Nope. Each '{' enters a level level of the struct, so the
first '{ enters 'struct smb2_handle' and the second
enters the array.

It sucks this didn't get back-ported :-(.



More information about the samba-technical mailing list