From bb58c764f9f21f8baac5e2fb1d81fed4983d1242 Mon Sep 17 00:00:00 2001 From: Luca Fedeli Date: Mon, 24 Aug 2020 23:14:30 +0200 Subject: Fix some warnings (#1239) This PR fixes the source of several compilation warnings. Co-authored-by: Axel Huebl --- Source/Parser/WarpXParser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Source/Parser/WarpXParser.cpp') diff --git a/Source/Parser/WarpXParser.cpp b/Source/Parser/WarpXParser.cpp index 093d7b2d6..38350ab3c 100644 --- a/Source/Parser/WarpXParser.cpp +++ b/Source/Parser/WarpXParser.cpp @@ -100,7 +100,7 @@ WarpXParser::registerVariables (std::vector const& names) const int tid = omp_get_thread_num(); struct wp_parser* p = m_parser[tid]; auto& v = m_variables[tid]; - for (int j = 0; j < names.size(); ++j) { + for (int j = 0; j < static_cast(names.size()); ++j) { wp_parser_regvar(p, names[j].c_str(), &(v[j])); m_varnames[tid].push_back(names[j]); } -- cgit v1.2.3