From cea8c3124f982606f4b466374c568d0f723b8197 Mon Sep 17 00:00:00 2001 From: Daniel Elstner Date: Thu, 29 Oct 2015 21:48:49 +0100 Subject: [PATCH] C++: Suppress deprecation warnings from glibmm Ignore warnings due to use of std::auto_ptr<> in the glibmm headers. This should be reverted once glibmm is fixed. --- bindings/cxx/include/libsigrokcxx/libsigrokcxx.hpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bindings/cxx/include/libsigrokcxx/libsigrokcxx.hpp b/bindings/cxx/include/libsigrokcxx/libsigrokcxx.hpp index cf86bfc3..b60d6132 100644 --- a/bindings/cxx/include/libsigrokcxx/libsigrokcxx.hpp +++ b/bindings/cxx/include/libsigrokcxx/libsigrokcxx.hpp @@ -71,7 +71,12 @@ raised, which provides access to the error code and description. #define LIBSIGROKCXX_HPP #include + +/* Suppress warnings due to glibmm's use of std::auto_ptr<> in a public + * header file. To be removed once glibmm is fixed. */ +G_GNUC_BEGIN_IGNORE_DEPRECATIONS #include +G_GNUC_END_IGNORE_DEPRECATIONS #include #include