summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2022-10-30 17:35:34 +0000
committerSam James <sam@gentoo.org>2022-10-30 17:43:01 +0000
commitfde70361c2211d7f4c52599b56cc75c4aae98928 (patch)
treeb8680b607f157bce26312b56b26d3b09de8cc2a3 /m4
parentd9e783f7eb235c9d27ed69c8e56cd78a6becd323 (diff)
downloadautoconf-archive-fde70361c2211d7f4c52599b56cc75c4aae98928.tar.gz
AX_C_VAR_FUNC: fix -Wstrict-prototypes
Preparation for Clang 16. Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'm4')
-rw-r--r--m4/ax_c_var_func.m44
1 files changed, 2 insertions, 2 deletions
diff --git a/m4/ax_c_var_func.m4 b/m4/ax_c_var_func.m4
index 4e0e083..8b1e67a 100644
--- a/m4/ax_c_var_func.m4
+++ b/m4/ax_c_var_func.m4
@@ -50,14 +50,14 @@
# modified version of the Autoconf Macro, you may extend this special
# exception to the GPL to apply to your modified version as well.
-#serial 12
+#serial 13
AU_ALIAS([AC_C_VAR_FUNC], [AX_C_VAR_FUNC])
AC_DEFUN([AX_C_VAR_FUNC],
[AC_REQUIRE([AC_PROG_CC])
AC_CACHE_CHECK(whether $CC recognizes __func__, ac_cv_c_var_func,
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([],
-[[int main() {
+[[int main(void) {
char *s = __func__;
}]])],
[ac_cv_c_var_func=yes],