Skip to content

Commit e875e1f

Browse files
committed
Fix last set of compiler warnings after messing up on not being up to date with the remote branch...
1 parent 127c0b5 commit e875e1f

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/options/option_post_processing.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ LightUpOptions parse_legacy_light_up(const toml::value& toml_input) {
9090

9191
// Parse sample direction (light_s_dir -> sample_direction)
9292
if (viz_table.contains("light_s_dir")) {
93-
const auto& dir = toml::find(toml_input, "light_s_dir");
93+
const auto dir = toml::find(toml_input, "light_s_dir");
9494
if (dir.at(0).is(toml::value_t::integer)) {
9595
auto dir_vec = toml::get<std::vector<int>>(dir);
9696
if (dir_vec.size() >= 3) {
@@ -181,7 +181,7 @@ LightUpOptions LightUpOptions::from_toml(const toml::value& toml_input) {
181181
}
182182

183183
if (toml_input.contains("light_s_dir")) {
184-
const auto& dir = toml::find(toml_input, "light_s_dir");
184+
const auto dir = toml::find(toml_input, "light_s_dir");
185185
if (dir.at(0).is(toml::value_t::integer)) {
186186
auto dir_vec = toml::get<std::vector<int>>(dir);
187187
if (dir_vec.size() >= 3) {
@@ -194,7 +194,7 @@ LightUpOptions LightUpOptions::from_toml(const toml::value& toml_input) {
194194
}
195195
}
196196
} else if (toml_input.contains("sample_direction")) {
197-
const auto& dir = toml::find(toml_input, "sample_direction");
197+
const auto dir = toml::find(toml_input, "sample_direction");
198198
if (dir.at(0).is(toml::value_t::integer)) {
199199
auto dir_vec = toml::get<std::vector<int>>(dir);
200200
if (dir_vec.size() >= 3) {

src/postprocessing/postprocessing_file_manager.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -509,9 +509,9 @@ inline bool PostProcessingFileManager::EnsureDirectoryExists(fs::path& output_di
509509

510510
// Broadcast the potentially updated output_dir to all ranks
511511
std::string path_str = output_dir.string();
512-
int dir_length = path_str.length();
512+
int dir_length = static_cast<int>(path_str.length());
513513
MPI_Bcast(&dir_length, 1, MPI_INT, 0, comm);
514-
path_str.resize(dir_length);
514+
path_str.resize(static_cast<size_t>(dir_length));
515515
MPI_Bcast(&path_str[0], dir_length, MPI_CHAR, 0, comm);
516516
output_dir = path_str;
517517

src/system_driver.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ namespace {
8888
max_origin.HostReadWrite();
8989
// We need to calculate the minimum point in the mesh to get the correct velocity gradient across
9090
// the part.
91-
RAJA::RangeSegment default_range(0, nnodes);
91+
RAJA::RangeSegment default_range(0, static_cast<long>(nnodes));
9292
if (class_device == RTModel::CPU) {
9393
for (int j = 0; j < space_dim; j++) {
9494
RAJA::ReduceMin<RAJA::seq_reduce, double> seq_min(std::numeric_limits<double>::max());

0 commit comments

Comments
 (0)