From: Michael Tokarev <mjt@tls.msk.ru>
To: Tobias Klauser <tklauser@distanz.ch>, qemu-devel@nongnu.org
Cc: qemu-trivial@nongnu.org
Subject: Re: [Qemu-devel] [Qemu-trivial] [PATCH] disas/arm: Remove redefinition of ATTRIBUTE_UNUSED
Date: Wed, 24 Sep 2014 11:58:45 +0400 [thread overview]
Message-ID: <542279B5.7070502@msgid.tls.msk.ru> (raw)
In-Reply-To: <1411061124-21108-1-git-send-email-tklauser@distanz.ch>
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 <tklauser@distanz.ch>
> ---
> 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
>
next prev parent reply other threads:[~2014-09-24 8:04 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-18 17:25 [Qemu-devel] [PATCH] disas/arm: Remove redefinition of ATTRIBUTE_UNUSED Tobias Klauser
2014-09-24 7:58 ` Michael Tokarev [this message]
2014-09-24 9:09 ` [Qemu-devel] [Qemu-trivial] " Peter Maydell
2014-09-24 11:39 ` Tobias Klauser
2014-09-24 11:37 ` Tobias Klauser
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=542279B5.7070502@msgid.tls.msk.ru \
--to=mjt@tls.msk.ru \
--cc=qemu-devel@nongnu.org \
--cc=qemu-trivial@nongnu.org \
--cc=tklauser@distanz.ch \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).