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 wjliu1998 committed Aug 13, 2020
1 parent e42019c commit d17e8ef
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 d17e8ef

Please sign in to comment.