Skip to content

Commit

Permalink
[compile macosx] minor getting rid of compilation warning->errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Vidya Narayanan authored and Vidya Narayanan committed Sep 5, 2018
1 parent 2bf9196 commit 3748882
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Interface.cpp
Expand Up @@ -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));
Expand Down
4 changes: 2 additions & 2 deletions schedule.cpp
Expand Up @@ -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) {
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 3748882

Please sign in to comment.