[arrayfire] 296/408: Fixes to supress annoying compiler warnings in OpenCL backend

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Mon Sep 21 19:12:17 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 e7e38b5be1ced930daff4f8437d3e244dae7f126
Author: Pavan Yalamanchili <pavan at arrayfire.com>
Date:   Thu Aug 20 08:59:35 2015 -0400

    Fixes to supress annoying compiler warnings in OpenCL backend
---
 src/backend/opencl/CMakeLists.txt | 2 +-
 src/backend/opencl/cl.hpp         | 5 +++++
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/src/backend/opencl/CMakeLists.txt b/src/backend/opencl/CMakeLists.txt
index 767a292..efffcde 100644
--- a/src/backend/opencl/CMakeLists.txt
+++ b/src/backend/opencl/CMakeLists.txt
@@ -178,7 +178,7 @@ CL_KERNEL_TO_H(
 
 # OS Definitions
 IF(UNIX)
-    SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC -pthread")
+    SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC -pthread -Wno-comment")
 ELSE(${UNIX}) #Windows
     SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
     SET(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} /bigobj")
diff --git a/src/backend/opencl/cl.hpp b/src/backend/opencl/cl.hpp
index bd7caf5..d16dca3 100644
--- a/src/backend/opencl/cl.hpp
+++ b/src/backend/opencl/cl.hpp
@@ -142,6 +142,10 @@
  * \endcode
  *
  */
+
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
+
 #ifndef CL_HPP_
 #define CL_HPP_
 
@@ -12450,3 +12454,4 @@ public:
 #endif // _WIN32
 
 #endif // CL_HPP_
+#pragma GCC diagnostic pop

-- 
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