Received: from eggs.gnu.org ([2001:4830:134:3::10]:40805) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UmNqj-0007rJ-5N for qemu-devel@nongnu.org; Tue, 11 Jun 2013 08:38:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UmNqh-0005A1-1v for qemu-devel@nongnu.org; Tue, 11 Jun 2013 08:38:57 -0400 Message-ID: <51B71A5B.7040001@msgid.tls.msk.ru> Date: Tue, 11 Jun 2013 16:38:51 +0400 From: Michael Tokarev MIME-Version: 1.0 References: <1370780536-28150-1-git-send-email-sw@weilnetz.de> In-Reply-To: <1370780536-28150-1-git-send-email-sw@weilnetz.de> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [Qemu-trivial] [PATCH] audio: Replace macro GCC_ATTR by GCC_FMT_ATTR and use inline functions List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Weil Cc: qemu-trivial , qemu-devel [Removing malc's email since it bounces] 09.06.2013 16:22, Stefan Weil wrote: > GCC_ATTR was only used in audio_int.h, so it is now unused and > the definition can be removed from compiler.h. >=20 > Signed-off-by: Stefan Weil > --- > audio/audio_int.h | 8 +++----- > include/qemu/compiler.h | 3 --- > 2 files changed, 3 insertions(+), 8 deletions(-) >=20 > diff --git a/audio/audio_int.h b/audio/audio_int.h > index b9b0676..5a6284b 100644 > --- a/audio/audio_int.h > +++ b/audio/audio_int.h > @@ -243,7 +243,7 @@ static inline int audio_ring_dist (int dst, int src= , int len) > return (dst >=3D src) ? (dst - src) : (len - src + dst); > } > =20 > -static void GCC_ATTR dolog (const char *fmt, ...) > +static inline void GCC_FMT_ATTR(1, 2) dolog (const char *fmt, ...) This change (adding `inline') causes build failure with at least with gcc= -4.7: audio/wavaudio.c: In function =91dolog=92: audio/audio_int.h:246:100: error: function =91dolog=92 can never be inlin= ed because it uses variable argument lists $ gcc --version gcc (Debian 4.7.2-5) 4.7.2 I think the addition of inline should be dropped here and in other similar places (the rest is ok). I can do that myself if you want. Alternatively these functions can be turned into varargs #defines. Thanks, /mjt