From 5c934add2fb06088b4678b6aa5a5120ac36ef20f Mon Sep 17 00:00:00 2001 From: Yang Chen <40417152+yangchen-MS@users.noreply.github.com> Date: Fri, 26 Oct 2018 16:38:32 -0700 Subject: [PATCH] initialize base class in copy constructors (#2006) GCC issues warnings with -Wextra if we don't explicitly initialize base class in copy constructors. This commit fixed the issue. --- include/tvm/runtime/packed_func.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/tvm/runtime/packed_func.h b/include/tvm/runtime/packed_func.h index c306f8d15160..c2098636f687 100644 --- a/include/tvm/runtime/packed_func.h +++ b/include/tvm/runtime/packed_func.h @@ -603,7 +603,7 @@ class TVMRetValue : public TVMPODValue_ { using TVMPODValue_::operator TVMContext; using TVMPODValue_::operator NDArray; // Disable copy and assign from another value, but allow move. - TVMRetValue(const TVMRetValue& other) { + TVMRetValue(const TVMRetValue& other) : TVMPODValue_() { this->Assign(other); } // conversion operators