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.
This commit is contained in:
Daniel Elstner 2015-10-29 21:48:49 +01:00
parent 8ebf1469a9
commit cea8c3124f
1 changed files with 5 additions and 0 deletions

View File

@ -71,7 +71,12 @@ raised, which provides access to the error code and description.
#define LIBSIGROKCXX_HPP
#include <libsigrok/libsigrok.h>
/* 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 <glibmm.h>
G_GNUC_END_IGNORE_DEPRECATIONS
#include <stdexcept>
#include <memory>