[arrayfire] 345/408: Adding more pragma directives to supress GCC warnings

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Mon Sep 21 19:12:27 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 73717c1b04bcdfe359f815a978ac30fe26617fe2
Author: Pavan Yalamanchili <pavan at arrayfire.com>
Date:   Tue Aug 25 08:37:01 2015 -0400

    Adding more pragma directives to supress GCC warnings
---
 src/backend/opencl/kernel/orb.hpp          | 4 ++++
 src/backend/opencl/kernel/regions.hpp      | 5 +++++
 src/backend/opencl/kernel/sift_nonfree.hpp | 8 ++++++++
 3 files changed, 17 insertions(+)

diff --git a/src/backend/opencl/kernel/orb.hpp b/src/backend/opencl/kernel/orb.hpp
index 71d6ae0..be46a59 100644
--- a/src/backend/opencl/kernel/orb.hpp
+++ b/src/backend/opencl/kernel/orb.hpp
@@ -29,6 +29,9 @@ using cl::LocalSpaceArg;
 using cl::NDRange;
 using std::vector;
 
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
+
 namespace opencl
 {
 
@@ -503,3 +506,4 @@ void orb(unsigned* out_feat,
 } //namespace kernel
 
 } //namespace opencl
+#pragma GCC diagnostic pop
diff --git a/src/backend/opencl/kernel/regions.hpp b/src/backend/opencl/kernel/regions.hpp
index ca8288f..d814d6d 100644
--- a/src/backend/opencl/kernel/regions.hpp
+++ b/src/backend/opencl/kernel/regions.hpp
@@ -19,6 +19,9 @@
 #include <map>
 #include <memory.hpp>
 
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
+
 #include <boost/compute/container/vector.hpp>
 #include <boost/compute/algorithm/adjacent_difference.hpp>
 #include <boost/compute/algorithm/sort.hpp>
@@ -28,6 +31,8 @@
 #include <boost/compute/lambda/placeholders.hpp>
 #include <boost/compute/lambda.hpp>
 
+#pragma GCC diagnostic pop
+
 using cl::Buffer;
 using cl::Program;
 using cl::Kernel;
diff --git a/src/backend/opencl/kernel/sift_nonfree.hpp b/src/backend/opencl/kernel/sift_nonfree.hpp
index f1b89e2..9c36a3f 100644
--- a/src/backend/opencl/kernel/sift_nonfree.hpp
+++ b/src/backend/opencl/kernel/sift_nonfree.hpp
@@ -75,11 +75,19 @@
 #include <dispatch.hpp>
 #include <err_opencl.hpp>
 #include <debug_opencl.hpp>
+
+
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
+
 #include <boost/compute/core.hpp>
 #include <boost/compute/iterator/buffer_iterator.hpp>
 #include <boost/compute/algorithm/gather.hpp>
 #include <boost/compute/algorithm/iota.hpp>
 #include <boost/compute/algorithm/sort_by_key.hpp>
+
+#pragma GCC diagnostic pop
+
 #include <convolve_common.hpp>
 #include <kernel/convolve_separable.hpp>
 #include <kernel/fast.hpp>

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