[arrayfire] 54/408: Compilation and warning fixes

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Mon Sep 21 19:11:15 UTC 2015


This is an automated email from the git hooks/post-receive script.

ghisvail-guest pushed a commit to branch debian/sid
in repository arrayfire.

commit 74c2b051424c39ca8c145446c2c8583d8bb4ff6f
Author: Shehzan Mohammed <shehzan at arrayfire.com>
Date:   Fri Jun 26 15:22:27 2015 -0400

    Compilation and warning fixes
---
 src/api/c/image.cpp       | 1 -
 src/backend/cuda/math.hpp | 4 ----
 test/reduce.cpp           | 4 ++--
 3 files changed, 2 insertions(+), 7 deletions(-)

diff --git a/src/api/c/image.cpp b/src/api/c/image.cpp
index 8d075fa..f375604 100644
--- a/src/api/c/image.cpp
+++ b/src/api/c/image.cpp
@@ -57,7 +57,6 @@ Array<float> normalizePerType<float>(const Array<float>& in)
 template<typename T>
 static fg::Image* convert_and_copy_image(const af_array in)
 {
-    ArrayInfo info      = getInfo(in);
     const Array<T> _in  = getArray<T>(in);
     dim4 inDims = _in.dims();
 
diff --git a/src/backend/cuda/math.hpp b/src/backend/cuda/math.hpp
index 30a6259..577db84 100644
--- a/src/backend/cuda/math.hpp
+++ b/src/backend/cuda/math.hpp
@@ -108,10 +108,6 @@ namespace cuda
     template<> __device__  float  limit_min<float>()  { return -CUDART_INF_F; }
     template<> __device__  double limit_max<double>() { return  CUDART_INF; }
     template<> __device__  double limit_min<double>() { return -CUDART_INF; }
-    template<> __device__  intl   limit_max<intl>()   { return 0x7fffffffffffffff; }
-    template<> __device__  intl   limit_min<intl>()   { return 0x8000000000000000; }
-    template<> __device__  uintl  limit_max<uintl>()  { return 0xffffffffffffffff; }
-    template<> __device__  uintl  limit_min<uintl>()  { return 0; }
 #endif
 
 #define upcast cuComplexFloatToDouble
diff --git a/test/reduce.cpp b/test/reduce.cpp
index 5d30e81..49200b4 100644
--- a/test/reduce.cpp
+++ b/test/reduce.cpp
@@ -88,12 +88,12 @@ void reduceTest(string pTestFile, int off = 0, bool isSubRef=false, const vector
                                                                 << " for dim " << d + off << std::endl;
             }
             af_print_array(outArray);
-            for(int i = 0; i < nElems; i++) {
+            for(int i = 0; i < (int)nElems; i++) {
                 cout << currGoldBar[i] << ", ";
             }
 
             cout << endl;
-            for(int i = 0; i < nElems; i++) {
+            for(int i = 0; i < (int)nElems; i++) {
                 cout << outData[i] << ", ";
             }
             FAIL();

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/arrayfire.git



More information about the debian-science-commits mailing list