Skip to content

Commit fb23896

Browse files
committed
Update spdlog to newer version
This fixes some but not all warnings w. GCC
1 parent 81dcd19 commit fb23896

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

Diff for: cmake/ExternalTools.cmake

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ include(FetchContent)
55
# CPM Packages
66
###############
77

8-
CPMAddPackage("gh:gabime/spdlog@1.13.0")
8+
CPMAddPackage("gh:gabime/spdlog@1.14.1")
99
CPMAddPackage("gh:ericniebler/range-v3#0.12.0")
1010
CPMAddPackage("gh:docopt/docopt.cpp#v0.6.3")
1111
CPMAddPackage("gh:doctest/doctest#v2.4.11")

Diff for: src/analysis.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -1646,7 +1646,8 @@ std::pair<Point, Point> InertiaTensor::compute() const {
16461646

16471647
void InertiaTensor::_sample() {
16481648
const auto [eigen_values, principle_axis] = compute();
1649-
*stream << fmt::format("{} {} {}\n", getNumberOfSteps(), eigen_values.transpose(), principle_axis.transpose());
1649+
*stream << fmt::format("{} {} {} {} {} {} {} \n", getNumberOfSteps(), eigen_values[0], eigen_values[1],
1650+
eigen_values[2], principle_axis[0], principle_axis[1], principle_axis[2]);
16501651
}
16511652

16521653
InertiaTensor::InertiaTensor(const json& j, const Space& spc)

Diff for: src/voronota.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ void Voronota::_sample() {
6565

6666
if (use_pbc) {
6767
auto to_point = [](const Point& p) -> SimplePoint { return {p.x(), p.y(), p.z()}; };
68-
const auto corner = 0.5 * spc.geometry.getLength();
68+
const Point corner = 0.5 * spc.geometry.getLength();
6969
const std::vector<SimplePoint> box_corners = {to_point(-corner), to_point(corner)};
7070
voronotalt::RadicalTessellation::construct_full_tessellation(spheres, box_corners, result);
7171
} else {

0 commit comments

Comments
 (0)