aboutsummaryrefslogtreecommitdiff
path: root/src/test.c
diff options
context:
space:
mode:
authortlatorre <tlatorre@uchicago.edu>2018-11-14 10:53:56 -0600
committertlatorre <tlatorre@uchicago.edu>2018-11-14 10:53:56 -0600
commitc604b9d5b91a17175bac88d27b53193d98e1d332 (patch)
treec53c15e2b3830d9b1f20103f454984ad7b6192a0 /src/test.c
parent95f95be5f87f0fa4f5e9f7c8568dbb23a843cff6 (diff)
downloadsddm-c604b9d5b91a17175bac88d27b53193d98e1d332.tar.gz
sddm-c604b9d5b91a17175bac88d27b53193d98e1d332.tar.bz2
sddm-c604b9d5b91a17175bac88d27b53193d98e1d332.zip
fix some compiler warnings
Diffstat (limited to 'src/test.c')
-rw-r--r--src/test.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/test.c b/src/test.c
index 7179f6b..fe5cb66 100644
--- a/src/test.c
+++ b/src/test.c
@@ -1151,8 +1151,6 @@ int test_solid_angle_fast(char *err)
double n[3] = {0,0,1};
double r = 1.0;
double solid_angle;
- double dir[3];
- double L, r0, R;
double expected;
init_genrand(0);
@@ -1163,14 +1161,6 @@ int test_solid_angle_fast(char *err)
rand_sphere(n);
r = genrand_real2();
- dir[0] = pos[0] - pmt[0];
- dir[1] = pos[1] - pmt[1];
- dir[2] = pos[2] - pmt[2];
-
- L = fabs(dir[0]*n[0] + dir[1]*n[1] + dir[2]*n[2]);
- R = sqrt(dir[0]*dir[0] + dir[1]*dir[1] + dir[2]*dir[2]);
- r0 = sqrt(R*R - L*L);
-
solid_angle = get_solid_angle_fast(pos,pmt,n,r);
expected = get_solid_angle(pos,pmt,n,r);