mirror of
https://github.com/harry7557558/spirula-studio.git
synced 2026-10-02 02:44:54 +08:00
fix windows compile error/warning
This commit is contained in:
@@ -5,6 +5,9 @@
|
||||
#include <cstddef>
|
||||
|
||||
#if defined(_WIN32)
|
||||
#ifndef WIN32_LEAN_AND_MEAN
|
||||
#define WIN32_LEAN_AND_MEAN // rpcndr.h's `#define small char` reaches far from here
|
||||
#endif
|
||||
#include <windows.h>
|
||||
#else
|
||||
#include <unistd.h>
|
||||
|
||||
@@ -303,7 +303,7 @@ Reference referenceSolve(const BAProblem& P, double lambda, double lossParam,
|
||||
std::vector<double> V(9 * (size_t)P.num_points, 0.0), bp(3 * (size_t)P.num_points, 0.0);
|
||||
std::vector<double> Wp((size_t)P.num_points * n * 3, 0.0);
|
||||
|
||||
bacpu::withLoss(loss, [&](auto L) {
|
||||
bacpu::withLoss(loss, [&]([[maybe_unused]] auto L) { // only decltype(L) is read
|
||||
for (uint32_t o = 0; o < P.num_obs; o++) {
|
||||
const uint32_t img = P.obs_image[o], pt = P.obs_point[o];
|
||||
const BAProblem::Group& gr = P.groups[P.image_group[img]];
|
||||
|
||||
Reference in New Issue
Block a user