Remove unused function warning from AC_C_INLINE
Kurt Schwehr <[email protected]>
| Newsgroups | gmane.comp.sysutils.autoconf.patches |
|---|---|
| Message-ID | <CAHXj0n-fwO0DZ0NkVN_7uJ3ASAJ8B+s0HXh-sZi9DTKiTNkcUw@mail.gmail.com> |
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(); }
#endif
])],
[ac_cv_c_inline=$ac_kw])
make check TESTSUITEFLAGS='218 219'
## --------------------------------------- ##
## GNU Autoconf 2.69.120-5dcda test suite. ##
## --------------------------------------- ##
Autotest.
218: C unit tests ok
219: C unit tests (EXEEXT) ok
## ------------- ##
## Test results. ##
## ------------- ##
ac_c_inline.patch
(text/x-patch, 351 B)
--- lib/autoconf/c.m4.orig 2014-06-09 09:40:18.640909445 -0700
+++ lib/autoconf/c.m4 2014-06-09 09:40:27.280972556 -0700
@@ -1742,7 +1742,7 @@
[#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(); }
#endif
])],
[ac_cv_c_inline=$ac_kw])