summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2022-10-30 17:36:04 +0000
committerSam James <sam@gentoo.org>2022-10-30 17:43:06 +0000
commit8a212466702f0ee0f101da245eb7b6a837515784 (patch)
treed078e0ab4a5013e586b5fed3c40241900baa61e6 /m4
parentfde70361c2211d7f4c52599b56cc75c4aae98928 (diff)
downloadautoconf-archive-8a212466702f0ee0f101da245eb7b6a837515784.tar.gz
AX_CHECK_POSIX_REGCOMP: fix -Wstrict-prototypes
Preparation for Clang 16. Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'm4')
-rw-r--r--m4/ax_check_posix_regcomp.m44
1 files changed, 2 insertions, 2 deletions
diff --git a/m4/ax_check_posix_regcomp.m4 b/m4/ax_check_posix_regcomp.m4
index 121734c..72c0bdd 100644
--- a/m4/ax_check_posix_regcomp.m4
+++ b/m4/ax_check_posix_regcomp.m4
@@ -21,7 +21,7 @@
# and this notice are preserved. This file is offered as-is, without any
# warranty.
-#serial 7
+#serial 8
AU_ALIAS([AG_CHECK_POSIX_REGCOMP], [AX_CHECK_POSIX_REGCOMP])
AC_DEFUN([AX_CHECK_POSIX_REGCOMP],[
@@ -29,7 +29,7 @@ AC_DEFUN([AX_CHECK_POSIX_REGCOMP],[
AC_CACHE_VAL([ax_cv_posix_regcomp],[
AC_RUN_IFELSE([AC_LANG_SOURCE([[#include <sys/types.h>
#include <regex.h>
-int main() {
+int main(void) {
int flags = REG_EXTENDED|REG_ICASE|REG_NEWLINE;
regex_t re;
if (regcomp( &re, "^.*$", flags ) != 0)