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:
parent
8ebf1469a9
commit
cea8c3124f
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue