Received: from eggs.gnu.org ([2001:4830:134:3::10]:33822) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ynuqa-00029c-FD for qemu-devel@nongnu.org; Thu, 30 Apr 2015 16:14:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YnuqX-0004tm-38 for qemu-devel@nongnu.org; Thu, 30 Apr 2015 16:14:12 -0400 Message-ID: <55428D0E.8070706@msgid.tls.msk.ru> Date: Thu, 30 Apr 2015 23:14:06 +0300 From: Michael Tokarev MIME-Version: 1.0 References: <1430421390-2787-1-git-send-email-cota@braap.org> In-Reply-To: <1430421390-2787-1-git-send-email-cota@braap.org> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] i440fx-test: guard ARRAY_SIZE definition with #ifndef List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Emilio G. Cota" , qemu-devel@nongnu.org Cc: qemu-trivial@nongnu.org, Peter Maydell , Peter Crosthwaite , Paolo Bonzini 30.04.2015 22:16, Emilio G. Cota wrote: > ARRAY_SIZE is defined in osdep.h so having an unconditional > definition here is fragile. Fragile in what sense? Nothing in that file includes osdep.h. At the maximum, compiler will issue a warning about redefinition (it should really be redefinition, not the same definition), which might be treated as error, and we'll just fix that warning.. I'd say just be done with this, it doesn't deserve that much attention ;) Somehow initially I thought this patch actually FIXES a warning of this sort. But it looks lile it is only fixes a potential warning. Oh well... :) Thanks, /mjt