Suppress warnings from glibmm about deprecated auto_ptr
[pulseview.git] / pv / binding / binding.hpp
index bd858bbf27626ee225f362e919d400fb13ab2404..4854bd6c81635e3c3ce824d56656d6a6a7d02978 100644 (file)
 #ifndef PULSEVIEW_PV_BINDING_BINDING_HPP
 #define PULSEVIEW_PV_BINDING_BINDING_HPP
 
+#include <glib.h>
+// Suppress warnings due to use of deprecated std::auto_ptr<> by glibmm.
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
 #include <glibmm.h>
+G_GNUC_END_IGNORE_DEPRECATIONS
 
 #include <vector>
 #include <memory>