mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 13:45:36 -04:00
Fix a whole bunch of -Wall warnings
This commit is contained in:
parent
fc8b2a5001
commit
1d5242ede1
23 changed files with 45 additions and 49 deletions
|
|
@ -80,8 +80,6 @@ std::unordered_map<int, int> plot_map;
|
|||
extern "C"
|
||||
int openmc_plot_geometry()
|
||||
{
|
||||
int err;
|
||||
|
||||
for (auto pl : model::plots) {
|
||||
std::stringstream ss;
|
||||
ss << "Processing plot " << pl.id_ << ": "
|
||||
|
|
@ -695,6 +693,10 @@ void draw_mesh_lines(Plot pl, ImageData& data)
|
|||
outer = 1;
|
||||
inner = 2;
|
||||
break;
|
||||
#ifdef __GNUC__
|
||||
default:
|
||||
__builtin_unreachable();
|
||||
#endif
|
||||
}
|
||||
|
||||
Position ll_plot {pl.origin_};
|
||||
|
|
@ -806,7 +808,6 @@ void create_voxel(Plot pl)
|
|||
|
||||
// Write current date and time
|
||||
write_attribute(file_id, "date_and_time", time_stamp().c_str());
|
||||
hsize_t three = 3;
|
||||
std::array<int, 3> pixels;
|
||||
std::copy(pl.pixels_.begin(), pl.pixels_.end(), pixels.begin());
|
||||
write_attribute(file_id, "num_voxels", pixels);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue