Re: Remove unused function warning from AC_C_INLINE
Eric Blake <[email protected]>
| Newsgroups | gmane.comp.sysutils.autoconf.patches |
|---|---|
| Organization | Red Hat, Inc. |
| Message-ID | <[email protected]> |
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
signature.asc
(application/pgp-signature, 604 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1 Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBCAAGBQJTlfCQAAoJEKeha0olJ0NqXHoH/2sWFKdQLUvaF+0s83Lr85fi b9QPACVJh0p7Nw+JiboGKUiF8khXLHjEDuGt3dnrJ/IJ/vHPj4HrqGcIZ1vQZWCm WPEANaEqcgu9VVJm/N25n/c18b4q6b3sKYG8cZo9TD1By9ueS92gPCV3TQwwTX/c YqIXfsxUEJlyDDyRhweVgDUcPOH5eCYUq0dZbc/JxQGEoOsYxg7FsrKpOk/KiyBG JcszJV75fA5iTaXK93W5zgVEjflM2wo59XANI3nlxiloh5JUaHorjd6xUOlfMk0i zA5RY0aM2P4dlhTIw714KR1oMr8Dm7pum44SKF0iUshAqgcSFOmeqHPmP5RhVrc= =QLtu -----END PGP SIGNATURE-----