aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/geodesic.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/geodesic.c b/src/geodesic.c
index 65ca1458..c8835a7a 100644
--- a/src/geodesic.c
+++ b/src/geodesic.c
@@ -56,7 +56,7 @@ static unsigned digits, maxit1, maxit2;
static real epsilon, realmin, pi, degree, NaN,
tiny, tol0, tol1, tol2, tolb, xthresh;
-static void Init() {
+static void Init(void) {
if (!init) {
digits = DBL_MANT_DIG;
epsilon = DBL_EPSILON;
@@ -210,6 +210,7 @@ static real atan2dx(real y, real x) {
case 1: ang = (y >= 0 ? 180 : -180) - ang; break;
case 2: ang = 90 - ang; break;
case 3: ang = -90 + ang; break;
+ default: break;
}
return ang;
}