Received: from eggs.gnu.org ([2001:4830:134:3::10]:58019) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YnLpX-0002UK-AC for qemu-devel@nongnu.org; Wed, 29 Apr 2015 02:50:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YnLpS-0003A2-4n for qemu-devel@nongnu.org; Wed, 29 Apr 2015 02:50:47 -0400 Message-ID: <55407F40.3050608@msgid.tls.msk.ru> Date: Wed, 29 Apr 2015 09:50:40 +0300 From: Michael Tokarev MIME-Version: 1.0 References: <1430153944-24368-1-git-send-email-thuth@redhat.com> <55407B8B.1010803@msgid.tls.msk.ru> <20150429084335.24fbeb31@thh440s> In-Reply-To: <20150429084335.24fbeb31@thh440s> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] kvm: Silence warning from valgrind List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Thomas Huth Cc: qemu-trivial@nongnu.org, Paolo Bonzini , qemu-devel@nongnu.org 29.04.2015 09:43, Thomas Huth wrote: > On Wed, 29 Apr 2015 09:34:51 +0300 > Michael Tokarev wrote: [] >> Hm. So, what's the difference? The same fields are assigned the same >> values, why in first case we have some uninitialized data and in second >> case everything is initialized? Does struct initializer zero-fills all >> other places (alignments, missing fields etc) ? > > Right, the struct initializer fills the remaining fields with zeros. Okay, point taken. I just didn't know. >> If yes, there's no need to assign zero to flags, btw ;) > > True. Shall I sent a patch without that line? I think it is better for readability to have it in. Applied to -trivial, thank you! /mjt