summaryrefslogtreecommitdiffstats
path: root/Tests/Fortran
diff options
context:
space:
mode:
authorWilliam R. Dieter <william.r.dieter@intel.com>2020-12-04 00:20:43 (GMT)
committerBrad King <brad.king@kitware.com>2021-01-28 14:05:35 (GMT)
commitf905cfdc773f8fc1221b01b74292b8d9e8140242 (patch)
treeef891df7eb7d4fa9ec6968b19f37bab3919e9fdc /Tests/Fortran
parent4c7e2615b8ddf162f18521c4685fddbb8010eb68 (diff)
downloadCMake-f905cfdc773f8fc1221b01b74292b8d9e8140242.zip
CMake-f905cfdc773f8fc1221b01b74292b8d9e8140242.tar.gz
CMake-f905cfdc773f8fc1221b01b74292b8d9e8140242.tar.bz2
Tests: Fix Fortran test C function prototypes
Several extern functions were declared without return type, which results in warnings. The functions are for calling Fortran subroutines, so there should not be a return value. Signed-off-by: William R. Dieter <william.r.dieter@intel.com>
Diffstat (limited to 'Tests/Fortran')
-rw-r--r--Tests/Fortran/myc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Tests/Fortran/myc.c b/Tests/Fortran/myc.c
index efd9b68..1a4d5a4 100644
--- a/Tests/Fortran/myc.c
+++ b/Tests/Fortran/myc.c
@@ -1,6 +1,6 @@
#include "foo.h"
-extern F_test_mod_sub(void);
-extern F_mysub(void);
+extern void F_test_mod_sub(void);
+extern void F_mysub(void);
int myc(void)
{
F_mysub();