From d17e8ef80b5bda2e2563a5bf684f18cec47c604d Mon Sep 17 00:00:00 2001 From: Balint Cristian Date: Wed, 5 Aug 2020 18:13:15 +0300 Subject: [PATCH] Fix compile warnings. (#6204) --- include/tvm/ir/attrs.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/tvm/ir/attrs.h b/include/tvm/ir/attrs.h index d20ba4f954561..749274acbb961 100644 --- a/include/tvm/ir/attrs.h +++ b/include/tvm/ir/attrs.h @@ -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); }