changeset 22886:5ede69715ebe

allow configure test to succeed without implicit fcn decls (bug #49782) * acinclude.m4 (OCTAVE_CHECK_SIZEOF_FORTRAN_INT): Provide declaration for test fucntion so that compilation will succeed with -Werror=implicit-function-declaration. From Orion Poplawski.
author John W. Eaton <jwe@octave.org>
date Tue, 13 Dec 2016 12:14:56 -0500
parents 0918e3b4f740
children 2ffc87d7d9a4
files m4/acinclude.m4
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/m4/acinclude.m4	Tue Dec 13 09:59:53 2016 -0500
+++ b/m4/acinclude.m4	Tue Dec 13 12:14:56 2016 -0500
@@ -1669,12 +1669,13 @@
       AC_RUN_IFELSE([AC_LANG_PROGRAM([[
           #include <assert.h>
           #include <stdint.h>
-          ]], [[
           #if defined (OCTAVE_ENABLE_64)
             typedef int64_t octave_idx_type;
           #else
             typedef int octave_idx_type;
           #endif
+          void F77_FUNC(foo,FOO) (octave_idx_type*, octave_idx_type**, octave_idx_type**);
+          ]], [[
           octave_idx_type n = 2;
           octave_idx_type in[2];
           octave_idx_type out[2];