avoid cast warnings when compiling boost headers

parent 1907249f
Pipeline #1159 passed with stage
in 1 minute and 27 seconds
...@@ -26,9 +26,13 @@ using namespace std; ...@@ -26,9 +26,13 @@ using namespace std;
#include "ComputingTasks.hh" #include "ComputingTasks.hh"
#include "Statement.hh" #include "Statement.hh"
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wold-style-cast"
#include <boost/algorithm/string/trim.hpp> #include <boost/algorithm/string/trim.hpp>
#include <boost/algorithm/string/split.hpp> #include <boost/algorithm/string/split.hpp>
#include <boost/tokenizer.hpp> #include <boost/tokenizer.hpp>
#pragma GCC diagnostic pop
#include <utility> #include <utility>
SteadyStatement::SteadyStatement(OptionsList options_list_arg) : SteadyStatement::SteadyStatement(OptionsList options_list_arg) :
......
/* /*
* Copyright © 2010-2017 Dynare Team * Copyright © 2010-2019 Dynare Team
* *
* This file is part of Dynare. * This file is part of Dynare.
* *
...@@ -23,9 +23,13 @@ ...@@ -23,9 +23,13 @@
#include <vector> #include <vector>
#include "ConfigFile.hh" #include "ConfigFile.hh"
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wold-style-cast"
#include <boost/algorithm/string/trim.hpp> #include <boost/algorithm/string/trim.hpp>
#include <boost/algorithm/string/split.hpp> #include <boost/algorithm/string/split.hpp>
#include <boost/tokenizer.hpp> #include <boost/tokenizer.hpp>
#pragma GCC diagnostic pop
using namespace std; using namespace std;
......
/* /*
* Copyright © 2003-2018 Dynare Team * Copyright © 2003-2019 Dynare Team
* *
* This file is part of Dynare. * This file is part of Dynare.
* *
...@@ -22,7 +22,10 @@ ...@@ -22,7 +22,10 @@
#include <iostream> #include <iostream>
#include <regex> #include <regex>
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wold-style-cast"
#include <boost/filesystem.hpp> #include <boost/filesystem.hpp>
#pragma GCC diagnostic pop
#include "DataTree.hh" #include "DataTree.hh"
......
...@@ -24,8 +24,11 @@ using namespace std; ...@@ -24,8 +24,11 @@ using namespace std;
#include <fstream> #include <fstream>
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wold-style-cast"
#include <boost/filesystem.hpp> #include <boost/filesystem.hpp>
#include <boost/crc.hpp> #include <boost/crc.hpp>
#pragma GCC diagnostic pop
#include "StaticModel.hh" #include "StaticModel.hh"
......
...@@ -32,7 +32,10 @@ ...@@ -32,7 +32,10 @@
#include <unistd.h> #include <unistd.h>
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wold-style-cast"
#include <boost/filesystem.hpp> #include <boost/filesystem.hpp>
#pragma GCC diagnostic pop
#include "ParsingDriver.hh" #include "ParsingDriver.hh"
#include "ExtendedPreprocessorTypes.hh" #include "ExtendedPreprocessorTypes.hh"
......
/* /*
* Copyright © 2008-2017 Dynare Team * Copyright © 2008-2019 Dynare Team
* *
* This file is part of Dynare. * This file is part of Dynare.
* *
...@@ -19,7 +19,10 @@ ...@@ -19,7 +19,10 @@
#include <iostream> #include <iostream>
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wold-style-cast"
#include <boost/filesystem.hpp> #include <boost/filesystem.hpp>
#pragma GCC diagnostic pop
#include "ParsingDriver.hh" #include "ParsingDriver.hh"
#include "ModFile.hh" #include "ModFile.hh"
......
/* /*
* Copyright © 2009-2010 Dynare Team * Copyright © 2009-2019 Dynare Team
* *
* This file is part of Dynare. * This file is part of Dynare.
* *
...@@ -22,7 +22,11 @@ ...@@ -22,7 +22,11 @@
#include <map> #include <map>
#include <vector> #include <vector>
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wold-style-cast"
#include <boost/graph/adjacency_list.hpp> #include <boost/graph/adjacency_list.hpp>
#pragma GCC diagnostic pop
using namespace std; using namespace std;
......
...@@ -23,7 +23,10 @@ ...@@ -23,7 +23,10 @@
#include <typeinfo> #include <typeinfo>
#include <cassert> #include <cassert>
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wold-style-cast"
#include <boost/filesystem.hpp> #include <boost/filesystem.hpp>
#pragma GCC diagnostic pop
#include "ModFile.hh" #include "ModFile.hh"
#include "ConfigFile.hh" #include "ConfigFile.hh"
......
...@@ -25,10 +25,13 @@ ...@@ -25,10 +25,13 @@
#include "ModelTree.hh" #include "ModelTree.hh"
#include "MinimumFeedbackSet.hh" #include "MinimumFeedbackSet.hh"
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wold-style-cast"
#include <boost/graph/adjacency_list.hpp> #include <boost/graph/adjacency_list.hpp>
#include <boost/graph/max_cardinality_matching.hpp> #include <boost/graph/max_cardinality_matching.hpp>
#include <boost/graph/strong_components.hpp> #include <boost/graph/strong_components.hpp>
#include <boost/graph/topological_sort.hpp> #include <boost/graph/topological_sort.hpp>
#pragma GCC diagnostic pop
using namespace MFS; using namespace MFS;
......
...@@ -29,7 +29,10 @@ using namespace std; ...@@ -29,7 +29,10 @@ using namespace std;
#include <ostream> #include <ostream>
#include <array> #include <array>
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wold-style-cast"
#include <boost/filesystem.hpp> #include <boost/filesystem.hpp>
#pragma GCC diagnostic pop
#include "DataTree.hh" #include "DataTree.hh"
#include "ExtendedPreprocessorTypes.hh" #include "ExtendedPreprocessorTypes.hh"
......
...@@ -18,7 +18,10 @@ ...@@ -18,7 +18,10 @@
*/ */
#include "Statement.hh" #include "Statement.hh"
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wold-style-cast"
#include <boost/xpressive/xpressive.hpp> #include <boost/xpressive/xpressive.hpp>
#pragma GCC diagnostic pop
#include <utility> #include <utility>
void void
......
/* /*
* Copyright © 2003-2018 Dynare Team * Copyright © 2003-2019 Dynare Team
* *
* This file is part of Dynare. * This file is part of Dynare.
* *
...@@ -24,7 +24,10 @@ using namespace std; ...@@ -24,7 +24,10 @@ using namespace std;
#include <fstream> #include <fstream>
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wold-style-cast"
#include <boost/filesystem.hpp> #include <boost/filesystem.hpp>
#pragma GCC diagnostic pop
#include "ModelTree.hh" #include "ModelTree.hh"
......
...@@ -21,7 +21,10 @@ ...@@ -21,7 +21,10 @@
#include <sstream> #include <sstream>
#include <iostream> #include <iostream>
#include <cassert> #include <cassert>
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wold-style-cast"
#include <boost/algorithm/string/replace.hpp> #include <boost/algorithm/string/replace.hpp>
#pragma GCC diagnostic pop
#include <utility> #include <utility>
#include "SymbolTable.hh" #include "SymbolTable.hh"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment