autoconf-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Remove unused function warning from AC_C_INLINE


From: Eric Blake
Subject: Re: Remove unused function warning from AC_C_INLINE
Date: Mon, 09 Jun 2014 11:36:16 -0600
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0

On 06/09/2014 10:47 AM, Kurt Schwehr wrote:
> See also:
> http://lists.gnu.org/archive/html/bug-autoconf/2014-06/msg00004.html
> 
> git diff
> diff --git a/lib/autoconf/c.m4 b/lib/autoconf/c.m4
> index b58e42d..877b030 100644
> --- a/lib/autoconf/c.m4
> +++ b/lib/autoconf/c.m4
> @@ -1742,7 +1742,7 @@ for ac_kw in inline __inline__ __inline; do
>  [#ifndef __cplusplus
>  typedef int foo_t;
>  static $ac_kw foo_t static_foo () {return 0; }
> -$ac_kw foo_t foo () {return 0; }
> +$ac_kw foo_t foo () {static_foo(); }

Don't you still need the 'return' ?

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]