Skip to content

Commit

Permalink
Fix compile warnings. (apache#6204)
Browse files Browse the repository at this point in the history
  • Loading branch information
cbalint13 authored and Trevor Morris committed Sep 2, 2020
1 parent 9c3733d commit 3217de6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions include/tvm/ir/attrs.h
Original file line number Diff line number Diff line change
Expand Up @@ -475,6 +475,10 @@ class AttrInitVisitor {
} else {
opt.value_missing_ = true;
}
#if defined(__GNUC__)
#pragma GCC diagnostic ignored "-Wpragmas"
#pragma GCC diagnostic ignored "-Wpessimizing-move"
#endif
return std::move(opt);
}

Expand Down

0 comments on commit 3217de6

Please sign in to comment.