From 6b5c5a56392af3c96227c310d2c7303fe173cfeb Mon Sep 17 00:00:00 2001 From: Yang Chen Date: Fri, 26 Oct 2018 13:39:48 -0700 Subject: [PATCH] initialize base class in copy constructors 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