hanzz2007 commented on pull request #6204: URL: https://github.com/apache/incubator-tvm/pull/6204#issuecomment-668498835
i suppose there are two ways to solve: 1. add some pragma to inhibit this warning 2. neither rely on move nor rvo, just refactor the AttrInitEntry , add ref counted internal state to delay destructor, as codes showing bellow https://gist.github.com/hanzz2007/803b28a7915c31686cffce0ac6450b73 https://gist.github.com/hanzz2007/e42b14b51c8c9c765cca107867e64d49 ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org