Skip to content

Commit

Permalink
fixes after static analysis by infer
Browse files Browse the repository at this point in the history
  • Loading branch information
attipaci committed Nov 29, 2024
1 parent ad1b78e commit 49a5118
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,4 @@ README-orig.md
TODO
VERSION
RELEASE-HOWTO.md
infer-out
2 changes: 1 addition & 1 deletion src/novas.c
Original file line number Diff line number Diff line change
Expand Up @@ -4627,7 +4627,7 @@ int nutation(double jd_tdb, enum novas_nutation_direction direction, enum novas_
return novas_error(-1, EINVAL, "nutation", "NULL input or output 3-vector: in=%p, out=%p", in, out);

// Call 'e_tilt' to get the obliquity and nutation angles.
e_tilt(jd_tdb, accuracy, &oblm, &oblt, NULL, &psi, NULL);
prop_error("nutation", e_tilt(jd_tdb, accuracy, &oblm, &oblt, NULL, &psi, NULL), 0);

oblm *= DEGREE;
oblt *= DEGREE;
Expand Down
2 changes: 1 addition & 1 deletion src/refract.c
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ double novas_radio_refraction(double jd_tt, const on_surface *loc, enum novas_re
static const double E[] = { 0.0, 46.625, 45.375, 4.1572, 1.4468, 0.25391, 2.2716, -1.3465, -4.3877, 3.1484, 4.520, -1.8982, 0.8900 };

double E0, TK;
double y = 1.0, z;
double y, z;
double poly;
double fptem;
double refraction;
Expand Down

0 comments on commit 49a5118

Please sign in to comment.