Received: from eggs.gnu.org ([2001:4830:134:3::10]:42258) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VQaGn-0005JW-Ay for qemu-devel@nongnu.org; Mon, 30 Sep 2013 06:00:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VQaGh-0003NT-J7 for qemu-devel@nongnu.org; Mon, 30 Sep 2013 06:00:01 -0400 From: Markus Armbruster References: <1380469272-19230-1-git-send-email-sw@weilnetz.de> <52488A00.6000405@msgid.tls.msk.ru> <52488E98.3060505@weilnetz.de> Date: Mon, 30 Sep 2013 11:59:49 +0200 In-Reply-To: <52488E98.3060505@weilnetz.de> (Stefan Weil's message of "Sun, 29 Sep 2013 22:33:28 +0200") Message-ID: <871u46iq96.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [Qemu-trivial] [PATCH] migration: Fix compiler warning ('caps' may be used uninitialized) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Weil Cc: qemu-trivial , Michael Tokarev , qemu-devel Stefan Weil writes: > Am 29.09.2013 22:13, schrieb Michael Tokarev: >> 29.09.2013 19:41, Stefan Weil wrote: >>> The QEMU buildbot default_i386_debian_6_0 shows this warning: >>> >>> CC migration.o >>> migration.c: In function 'qmp_query_migrate_capabilities': >>> migration.c:149: warning: >>> 'caps' may be used uninitialized in this function >> >> Gah, how disgusting. The code is correct, yet gcc complains >> needlessly... > > That's not the first time where we help the compiler by modifying the code. It's also not the first time where attempting to "help" the compiler made code less readable, or even less correct. So let's be just as careful as with "real" changes.