commit | 861a3f3a30cdd36050ec33d4de0927a020e40dc1 | [log] [tgz] |
---|---|---|
author | soumith <soumith@fb.com> | Sat Dec 17 14:01:11 2016 -0800 |
committer | soumith <soumith@fb.com> | Sat Dec 17 14:01:11 2016 -0800 |
tree | 971081ba8711dc33240e00ac3509e2d8b6b474a0 | |
parent | a2ef5782d07ce12fa4df6c943e14b920da45663c [diff] |
avoid shadowing warnings
diff --git a/THCCachingAllocator.cpp b/THCCachingAllocator.cpp index 85cafd4..eeae04a 100644 --- a/THCCachingAllocator.cpp +++ b/THCCachingAllocator.cpp
@@ -112,7 +112,7 @@ } 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; }