Skip to content

Commit d659d91

Browse files
committed
Prevent unused variable warnings
1 parent d2ae0c3 commit d659d91

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/LinearTests.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1590,9 +1590,10 @@ void test_sp_create_spline2_kernel_table(CuTest * tc){
15901590
int t = sp_timer_start();
15911591
step = 1e-5;
15921592
int i = 0;
1593+
volatile real sample;
15931594
/* I need double precision or the small step is gonna be washed in the numerical error */
15941595
for(double r2 = 0;r2<4;r2+=step){
1595-
real sample = 1;
1596+
sample = 1;
15961597
sample = i;
15971598
i++;
15981599
}
@@ -1603,7 +1604,7 @@ void test_sp_create_spline2_kernel_table(CuTest * tc){
16031604
i = 0;
16041605
/* I need double precision or the small step is gonna be washed in the numerical error */
16051606
for(double r2 = 0;r2<4;r2+=step){
1606-
real sample = sp_kernel_table_sample(k,r2);
1607+
sample = sp_kernel_table_sample(k,r2);
16071608
sample = i;
16081609
i++;
16091610
}

0 commit comments

Comments
 (0)