Received: from eggs.gnu.org ([2001:4830:134:3::10]:58927) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XWhYW-0007Hx-E7 for qemu-devel@nongnu.org; Wed, 24 Sep 2014 04:04:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XWhYP-00074Z-EJ for qemu-devel@nongnu.org; Wed, 24 Sep 2014 04:04:08 -0400 Message-ID: <542279B5.7070502@msgid.tls.msk.ru> Date: Wed, 24 Sep 2014 11:58:45 +0400 From: Michael Tokarev MIME-Version: 1.0 References: <1411061124-21108-1-git-send-email-tklauser@distanz.ch> In-Reply-To: <1411061124-21108-1-git-send-email-tklauser@distanz.ch> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [Qemu-trivial] [PATCH] disas/arm: Remove redefinition of ATTRIBUTE_UNUSED List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Tobias Klauser , qemu-devel@nongnu.org Cc: qemu-trivial@nongnu.org 18.09.2014 21:25, Tobias Klauser wrote: > ATTRIBUTE_UNUSED is already defined in disas/bfd.h, which is included. > Thus, there is no need to redefine it. Is there any harm in keeping it here? While it really is a redifinition, I'm not sure what's the right thing here. This whole code is not from qemu, it is an external source imported, and that source is being maintained (but under different license as has already been discussed, so keeping changes at minimum might not be that good idea anymore). On the other hand this symbol is so common it should be defined in a common header. Yet on another hand, for these external sources wich has public API, it might not be a good idea to define it in a header to start with, because it might clash with project-local define, so it might be better to define it in either private header or in individual source. Oh well, so much for so trivial thing... ;) /mjt > Signed-off-by: Tobias Klauser > --- > disas/arm.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/disas/arm.c b/disas/arm.c > index 76e97a8..6f63406 100644 > --- a/disas/arm.c > +++ b/disas/arm.c > @@ -23,7 +23,6 @@ > for things we don't care about. */ > > #include "disas/bfd.h" > -#define ATTRIBUTE_UNUSED __attribute__((unused)) > #define ISSPACE(x) ((x) == ' ' || (x) == '\t' || (x) == '\n') > > #define ARM_EXT_V1 0 >