aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKristian Evers <kristianevers@gmail.com>2018-05-07 21:31:58 +0200
committerKristian Evers <kristianevers@gmail.com>2018-05-07 21:31:58 +0200
commita4a1cebe729c6eb3843b3a646d8e5f1cbb50920e (patch)
tree41dae36eb573e0fc9099462c8eabff59cc503c4d
parentc4514a374af2b55887dcf45f6477829980f52d0e (diff)
downloadPROJ-a4a1cebe729c6eb3843b3a646d8e5f1cbb50920e.tar.gz
PROJ-a4a1cebe729c6eb3843b3a646d8e5f1cbb50920e.zip
Clean readability-redundant-control-flow clang-tidy warnings
-rw-r--r--src/PJ_helmert.c3
-rw-r--r--src/PJ_isea.c2
-rw-r--r--src/geocent.c1
-rw-r--r--src/pj_internal.c3
4 files changed, 0 insertions, 9 deletions
diff --git a/src/PJ_helmert.c b/src/PJ_helmert.c
index 5ff8c5d2..59864136 100644
--- a/src/PJ_helmert.c
+++ b/src/PJ_helmert.c
@@ -145,7 +145,6 @@ static void update_parameters(PJ *P) {
proj_log_trace(P, "rz: %g", Q->opk.k);
proj_log_trace(P, "theta: %g", Q->theta);
}
- return;
}
/**************************************************************************/
@@ -302,8 +301,6 @@ static void build_rot_matrix(PJ *P) {
proj_log_trace(P, " | % 6.6g % 6.6g % 6.6g |", R10, R11, R12);
proj_log_trace(P, " | % 6.6g % 6.6g % 6.6g |", R20, R21, R22);
}
-
- return;
}
diff --git a/src/PJ_isea.c b/src/PJ_isea.c
index 3e941c77..750587a3 100644
--- a/src/PJ_isea.c
+++ b/src/PJ_isea.c
@@ -608,7 +608,6 @@ isea_orient_isea(struct isea_dgg * g)
g->o_lat = ISEA_STD_LAT;
g->o_lon = ISEA_STD_LON;
g->o_az = 0.0;
- return;
}
ISEA_STATIC
@@ -620,7 +619,6 @@ isea_orient_pole(struct isea_dgg * g)
g->o_lat = M_PI / 2.0;
g->o_lon = 0.0;
g->o_az = 0;
- return;
}
ISEA_STATIC
diff --git a/src/geocent.c b/src/geocent.c
index a8cec043..c023bdd3 100644
--- a/src/geocent.c
+++ b/src/geocent.c
@@ -432,6 +432,5 @@ void pj_Convert_Geocentric_To_Geodetic (GeocentricInfo *gi,
/* ellipsoidal (geodetic) latitude */
*Latitude=atan2(SPHI, fabs(CPHI));
- return;
#endif /* defined(USE_ITERATIVE_METHOD) */
} /* END OF Convert_Geocentric_To_Geodetic */
diff --git a/src/pj_internal.c b/src/pj_internal.c
index dc528649..a6093c40 100644
--- a/src/pj_internal.c
+++ b/src/pj_internal.c
@@ -134,7 +134,6 @@ void proj_context_set (PJ *P, PJ_CONTEXT *ctx) {
if (0==ctx)
ctx = pj_get_default_ctx ();
pj_set_ctx (P, ctx);
- return;
}
@@ -143,7 +142,6 @@ void proj_context_inherit (PJ *parent, PJ *child) {
pj_set_ctx (child, pj_get_default_ctx());
else
pj_set_ctx (child, pj_get_ctx(parent));
- return;
}
@@ -361,7 +359,6 @@ to that context.
if (0==ctx)
ctx = pj_get_default_ctx();
pj_ctx_set_errno (ctx, err);
- return;
}
/* logging */