Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/torch/cutorch.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsoumith <soumith@fb.com>2016-12-18 01:01:11 +0300
committersoumith <soumith@fb.com>2016-12-18 01:01:11 +0300
commitbc5bdb881d1d6907a34a32e5979841a9854ba267 (patch)
tree9d34fca1f1067c2a37ae4a3d6aa5fa5dffa6558f
parentec93ff7b486274e248aa7156af7c8a1f16281e24 (diff)
avoid shadowing warnings
-rw-r--r--lib/THC/THCCachingAllocator.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/THC/THCCachingAllocator.cpp b/lib/THC/THCCachingAllocator.cpp
index 85cafd4..eeae04a 100644
--- a/lib/THC/THCCachingAllocator.cpp
+++ b/lib/THC/THCCachingAllocator.cpp
@@ -112,7 +112,7 @@ struct THCCachingAllocator
} else {
void* ptr;
size_t alloc_size = small ? kSmallAlloc : size;
- cudaError_t err = cuda_malloc_retry(device, &ptr, alloc_size);
+ err = cuda_malloc_retry(device, &ptr, alloc_size);
if (err != cudaSuccess) {
return err;
}