Skip to content

Commit da4e496

Browse files
committed
Fix build errors
1 parent afa9119 commit da4e496

File tree

2 files changed

+1
-14
lines changed

2 files changed

+1
-14
lines changed

src/frames.c

-13
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,9 @@ static int cmp_sys(enum novas_reference_system a, enum novas_reference_system b)
4040
}
4141

4242
static int matrix_transform(const double *in, const novas_matrix *matrix, double *out) {
43-
static const char *fn = "novas_matrix_transform";
4443
double orig[3];
4544
int i;
4645

47-
if(!in || !out)
48-
return novas_error(-1, EINVAL, fn, "NULL coordinate: in=%p, out=%p", in, out);
49-
if(!matrix)
50-
return novas_error(-1, EINVAL, fn, "NULL matrix pointer");
51-
5246
memcpy(orig, in, sizeof(orig));
5347

5448
for(i = 3; --i >= 0;)
@@ -60,15 +54,9 @@ static int matrix_transform(const double *in, const novas_matrix *matrix, double
6054

6155
static int matrix_inv_rotate(const double *in, const novas_matrix *matrix, double *out) {
6256
// IMPORTANT! use only with unitary matrices.
63-
static const char *fn = "novas_matrix_transform";
6457
double orig[3];
6558
int i;
6659

67-
if(!in || !out)
68-
return novas_error(-1, EINVAL, fn, "NULL coordinate: in=%p, out=%p", in, out);
69-
if(!matrix)
70-
return novas_error(-1, EINVAL, fn, "NULL matrix pointer");
71-
7260
memcpy(orig, in, sizeof(orig));
7361

7462
for(i = 3; --i >= 0;)
@@ -286,7 +274,6 @@ int novas_make_frame(enum novas_accuracy accuracy, const observer *obs, const no
286274
double mobl, tobl, ee, dpsi, deps;
287275
long ijd_ut1;
288276
double fjd_ut1;
289-
int err;
290277

291278
if(accuracy < 0 || accuracy > NOVAS_REDUCED_ACCURACY)
292279
return novas_error(-1, EINVAL, fn, "invalid accuracy: %d", accuracy);

src/novas.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -3433,7 +3433,7 @@ int e_tilt(double jd_tdb, enum novas_accuracy accuracy, double *mobl, double *to
34333433
* @param dx [mas] Earth orientation: GCRS pole offset dx, e.g. as published by IERS Bulletin A.
34343434
* @param dy [mas] Earth orientation: GCRS pole offset dy, e.g. as published by IERS Bulletin A.
34353435
* @param[out] dpsi [arcsec] Calculated TOD orientation d&psi;.
3436-
* @param[out] deps [arcsec] Calculated TOD orientation d&eps;.
3436+
* @param[out] deps [arcsec] Calculated TOD orientation d&epsilon;.
34373437
* @return 0
34383438
*
34393439
* @sa cel_pole()

0 commit comments

Comments
 (0)