From: Daniel Elstner Date: Thu, 29 Oct 2015 20:48:49 +0000 (+0100) Subject: C++: Suppress deprecation warnings from glibmm X-Git-Tag: libsigrok-0.4.0~144 X-Git-Url: https://sigrok.org/gitweb/?p=libsigrok.git;a=commitdiff_plain;h=cea8c3124f982606f4b466374c568d0f723b8197 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. --- 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