diff options
author | NIIBE Yutaka <gniibe@fsij.org> | 2022-12-14 14:21:11 +0900 |
---|---|---|
committer | NIIBE Yutaka <gniibe@fsij.org> | 2022-12-14 14:21:11 +0900 |
commit | e3b441214f93d8f61875b8223480e57afa2a3f10 (patch) | |
tree | 94480a56ebef6b9a202cff7219ef4b3c519f4315 /m4 | |
parent | f62d5cf9f2683efa867fb04332c84ec899818d22 (diff) | |
download | libgcrypt-e3b441214f93d8f61875b8223480e57afa2a3f10.tar.gz |
build: Fix m4 macros for strict C compiler.
* m4/ax_cc_for_build.m4: Fix for no arg.
* m4/noexecstack.m4: Likewise.
--
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
Diffstat (limited to 'm4')
-rw-r--r-- | m4/ax_cc_for_build.m4 | 2 | ||||
-rw-r--r-- | m4/noexecstack.m4 | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/m4/ax_cc_for_build.m4 b/m4/ax_cc_for_build.m4 index c62ffadb..e49b7268 100644 --- a/m4/ax_cc_for_build.m4 +++ b/m4/ax_cc_for_build.m4 @@ -60,7 +60,7 @@ if test "x$cross_compiling" = "xno"; then else AC_CACHE_CHECK([for build system executable suffix], bfd_cv_build_exeext, [rm -f conftest* - echo 'int main () { return 0; }' > conftest.c + echo 'int main (void) { return 0; }' > conftest.c bfd_cv_build_exeext= ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5 for file in conftest.*; do diff --git a/m4/noexecstack.m4 b/m4/noexecstack.m4 index ae0b26b8..85df0439 100644 --- a/m4/noexecstack.m4 +++ b/m4/noexecstack.m4 @@ -33,7 +33,7 @@ AC_MSG_RESULT($noexecstack_support) AC_CACHE_CHECK([whether assembler supports --noexecstack option], cl_cv_as_noexecstack, [dnl cat > conftest.c <<EOF -void foo() {} +void foo(void) {} EOF if AC_TRY_COMMAND([${CC} $CFLAGS $CPPFLAGS -S -o conftest.s conftest.c >/dev/null]) \ |