summaryrefslogtreecommitdiffstats
path: root/cuda/3d/par3d_fp.cu
diff options
context:
space:
mode:
authorWillem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl>2015-03-30 17:17:54 +0200
committerWillem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl>2015-03-30 17:17:54 +0200
commit3042b1369a96eef4798ea4280dd7aa1a8be2fcca (patch)
tree9f4f67f552c32bfeeb02497fbbe0a053d5e792f3 /cuda/3d/par3d_fp.cu
parentb70ed00ebdf2dc952e29daf4b335bc47fd7c2ea0 (diff)
downloadastra-3042b1369a96eef4798ea4280dd7aa1a8be2fcca.tar.gz
astra-3042b1369a96eef4798ea4280dd7aa1a8be2fcca.tar.bz2
astra-3042b1369a96eef4798ea4280dd7aa1a8be2fcca.tar.xz
astra-3042b1369a96eef4798ea4280dd7aa1a8be2fcca.zip
Initialize variables to avoid warning
These variables are never used when uninitialized, but Visual Studio complains about them.
Diffstat (limited to 'cuda/3d/par3d_fp.cu')
-rw-r--r--cuda/3d/par3d_fp.cu2
1 files changed, 1 insertions, 1 deletions
diff --git a/cuda/3d/par3d_fp.cu b/cuda/3d/par3d_fp.cu
index 8d44540..b14c494 100644
--- a/cuda/3d/par3d_fp.cu
+++ b/cuda/3d/par3d_fp.cu
@@ -440,7 +440,7 @@ bool Par3DFP_Array_internal(cudaPitchedPtr D_projData,
// tic(t);
for (unsigned int a = 0; a <= angleCount; ++a) {
- int dir;
+ int dir = -1;
if (a != dims.iProjAngles) {
float dX = fabsf(angles[a].fRayX);
float dY = fabsf(angles[a].fRayY);