Disable warnings around all wx includes.
[dcpomatic.git] / src / wx / full_language_tag_dialog.cc
index a26dcc0bb81a2862ca77a2d612292e6d37effa1f..19e52ff140eb813f758fb6bfbdc52be1e52c3adc 100644 (file)
 */
 
 
-#include "lib/dcpomatic_assert.h"
 #include "full_language_tag_dialog.h"
+#include "lib/dcpomatic_assert.h"
+#include "lib/warnings.h"
 #include <dcp/language_tag.h>
+DCPOMATIC_DISABLE_WARNINGS
 #include <wx/listctrl.h>
 #include <wx/srchctrl.h>
 #include <wx/wx.h>
+DCPOMATIC_ENABLE_WARNINGS
 #include <boost/algorithm/string.hpp>
 #include <boost/bind/bind.hpp>
 #include <boost/optional.hpp>
 #include <boost/signals2.hpp>
-#include <iostream>
 #include <iterator>
 #include <string>
 #include <vector>
 
 using std::min;
 using std::pair;
+using std::shared_ptr;
 using std::string;
 using std::vector;
-using boost::optional;
-using std::shared_ptr;
 using std::weak_ptr;
+using boost::optional;
 #if BOOST_VERSION >= 106100
 using namespace boost::placeholders;
 #endif
@@ -111,7 +113,7 @@ public:
        }
 
 private:
-       wxString OnGetItemText (long item, long column) const
+       wxString OnGetItemText (long item, long column) const override
        {
                if (column == 0) {
                        return _matching_subtags[item].subtag;