From 3748882a707216f29f765d203b85a1f2d581a6d3 Mon Sep 17 00:00:00 2001 From: Vidya Narayanan Date: Wed, 5 Sep 2018 14:04:54 -0400 Subject: [PATCH] [compile macosx] minor getting rid of compilation warning->errors --- Interface.cpp | 2 +- schedule.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Interface.cpp b/Interface.cpp index f89aca0..5248caa 100644 --- a/Interface.cpp +++ b/Interface.cpp @@ -1397,7 +1397,7 @@ static void make_sphere( static glm::vec2 Ring[Slices]; static glm::vec2 Slice[Rings+1]; - static bool inited = [Slices,Rings](){ + static bool inited = [](){ for (uint32_t a = 0; a < Slices; ++a) { float ang = a / float(Slices) * 2.0f * float(M_PI); Ring[a] = glm::vec2(std::cos(ang), std::sin(ang)); diff --git a/schedule.cpp b/schedule.cpp index 3cc68c2..6fb00ec 100644 --- a/schedule.cpp +++ b/schedule.cpp @@ -1847,7 +1847,7 @@ int main(int argc, char **argv) { } }; - auto make_xfers = [&loop_to_bn,&typeset_bed_needle](std::vector< BedNeedle > const &from, std::vector< BedNeedle > const &to, Storage const &loops) { + auto make_xfers = [&loop_to_bn](std::vector< BedNeedle > const &from, std::vector< BedNeedle > const &to, Storage const &loops) { assert(from.size() == loops.size()); assert(to.size() == loops.size()); for (uint32_t li = 0; li < loops.size(); ++li) { @@ -2234,7 +2234,7 @@ int main(int argc, char **argv) { std::unordered_map< Storage const *, std::pair< int32_t, Shape > > storage_layouts; //<-- is this really needed? for (uint32_t stepi = 0; stepi < steps.size(); ++stepi) { - auto check_storage_layout = [&loop_to_bn,&typeset_bed_needle](Storage const &storage, int32_t left, Shape const &shape) { + auto check_storage_layout = [&loop_to_bn](Storage const &storage, int32_t left, Shape const &shape) { bool front_stashed = false; bool front_unstashed = false; bool back_stashed = false;