You are viewing a plain text version of this content. The canonical link for it is here.
Posted to discuss-archive@tvm.apache.org by "tqchen (via GitHub)" <gi...@apache.org> on 2026/06/17 17:34:50 UTC
[PR] Avoid unused type_index local in structural visit [tvm-ffi]
tqchen opened a new pull request, #629:
URL: https://github.com/apache/tvm-ffi/pull/629
This removes the local `type_index` variable in `StructuralWalkCallbackVisitorObj::VisitImpl` and passes the type predicate directly to `TVM_FFI_UNSAFE_ASSUME`.
The previous local could trigger `-Wunused-variable` under configurations where the unsafe-assume macro compiles away or does not count as a use, causing warning-as-error builds to fail.
Validation:
- `git diff --check`
- `pre-commit run --files include/tvm/ffi/extra/structural_visit.h`
--
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.
To unsubscribe, e-mail: discuss-archive-unsubscribe@tvm.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: discuss-archive-unsubscribe@tvm.apache.org
For additional commands, e-mail: discuss-archive-help@tvm.apache.org
Re: [PR] Avoid unused type_index local in structural visit [tvm-ffi]
Posted by "tqchen (via GitHub)" <gi...@apache.org>.
tqchen merged PR #629:
URL: https://github.com/apache/tvm-ffi/pull/629
--
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.
To unsubscribe, e-mail: discuss-archive-unsubscribe@tvm.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: discuss-archive-unsubscribe@tvm.apache.org
For additional commands, e-mail: discuss-archive-help@tvm.apache.org