Description: Fix FTBFS from undefined declarations with gcc-14
Author: Alastair McKinstry <mckinstry@debian.org>
Bug-Origin: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1075168
Last-Updated: 2024-08-05
Forwarded: no

--- a/source/cproj.c
+++ b/source/cproj.c
@@ -342,7 +342,7 @@
 
 /* Function to return the sign of an argument
   ------------------------------------------*/
-sign(x)
+int sign(x)
 double x;
 {
 if (x < 0.0)
--- a/source/br_gctp.c
+++ b/source/br_gctp.c
@@ -21,6 +21,8 @@
 double *outparm;
 long *outunit;
 long *outspheroid;
+char *fn27;
+char *fn83;
 long *iflg;
 
 {
--- a/test/test_proj/testproj.c
+++ b/test/test_proj/testproj.c
@@ -40,7 +40,7 @@
 
 #define CMLEN	256
 
-main(int argc, char *argv[])
+int main(int argc, char *argv[])
 {
 long k;
 char file27[CMLEN];
