summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2022-10-30 17:34:22 +0000
committerSam James <sam@gentoo.org>2022-10-30 17:42:40 +0000
commit7a608fe3659b428f97760e84c0907cdd1d988b79 (patch)
tree18290eada5c0e04d11b63a096ff1d1cd1cfbf840 /m4
parente72dfe05770de34e096d12bbc035363be40f9830 (diff)
downloadautoconf-archive-7a608fe3659b428f97760e84c0907cdd1d988b79.tar.gz
AX_ADD_FORTIFY_SOURCE: fix -Wstrict-prototypes
Preparation for Clang 16. Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'm4')
-rw-r--r--m4/ax_add_fortify_source.m44
1 files changed, 2 insertions, 2 deletions
diff --git a/m4/ax_add_fortify_source.m4 b/m4/ax_add_fortify_source.m4
index 7e15312..9d921b8 100644
--- a/m4/ax_add_fortify_source.m4
+++ b/m4/ax_add_fortify_source.m4
@@ -36,7 +36,7 @@
# and this notice are preserved. This file is offered as-is, without any
# warranty.
-#serial 4
+#serial 5
AC_DEFUN([AX_ADD_FORTIFY_SOURCE],[
ac_save_cflags=$CFLAGS
@@ -57,7 +57,7 @@ AC_DEFUN([AX_ADD_FORTIFY_SOURCE],[
AC_LANG_SOURCE([[
#define _FORTIFY_SOURCE 2
#include <string.h>
- int main() {
+ int main(void) {
char *s = " ";
strcpy(s, "x");
return strlen(s)-1;