Received: from eggs.gnu.org ([2001:4830:134:3::10]:44541) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UmSIk-0008Ef-Ut for qemu-devel@nongnu.org; Tue, 11 Jun 2013 13:24:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UmSIj-0002r1-Gv for qemu-devel@nongnu.org; Tue, 11 Jun 2013 13:24:10 -0400 Message-ID: <51B75D34.7000401@weilnetz.de> Date: Tue, 11 Jun 2013 19:24:04 +0200 From: Stefan Weil MIME-Version: 1.0 References: <1370780536-28150-1-git-send-email-sw@weilnetz.de> <51B71A5B.7040001@msgid.tls.msk.ru> In-Reply-To: <51B71A5B.7040001@msgid.tls.msk.ru> 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: Michael Tokarev Cc: qemu-trivial , qemu-devel Am 11.06.2013 14:38, schrieb Michael Tokarev: > [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. >> >> Signed-off-by: Stefan Weil [snip] > This change (adding `inline') causes build failure with at least with g= cc-4.7: > > audio/wavaudio.c: In function =91dolog=92: > audio/audio_int.h:246:100: error: function =91dolog=92 can never be inl= ined 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 Thank you for reporting this compiler problem. I did not see it because I configured with -enable-debugwhich disables inline functions. I'll send a new patch which uses macros. Regards Stefan