Skip to content

Commit

Permalink
initialize base class in copy constructors (apache#2006)
Browse files Browse the repository at this point in the history
GCC issues warnings with -Wextra if we don't explicitly initialize
base class in copy constructors. This commit fixed the issue.
  • Loading branch information
yangchen-MS authored and AWS Neo committed Feb 20, 2019
1 parent f9fec3d commit 5c934ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/tvm/runtime/packed_func.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5c934ad

Please sign in to comment.