Commit 1d67cff
committed
fix: extend gcc -Wnonnull hint into check_index
The earlier hint in impl_ref() only cut the warning chain at the
DistArray::begin/end call sites. find/set/owner/is_local/is_zero etc.
call check_index(i) and then dereference pimpl_ directly; gcc-14
doesn't propagate the non-null guarantee out of impl_ref() across
check_index's return boundary.
Add the same TILEDARRAY_UNREACHABLE hint at the bottom of each
check_index overload — check_index calls impl_ref() (which asserts
pimpl_) and check_local_index then delegates to check_index, so this
single point covers every public method that pre-validates via
check_index before bare pimpl_-> deref.1 parent 0c5947f commit 1d67cff
1 file changed
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1628 | 1628 | | |
1629 | 1629 | | |
1630 | 1630 | | |
| 1631 | + | |
| 1632 | + | |
| 1633 | + | |
| 1634 | + | |
1631 | 1635 | | |
1632 | 1636 | | |
1633 | 1637 | | |
| |||
1636 | 1640 | | |
1637 | 1641 | | |
1638 | 1642 | | |
| 1643 | + | |
1639 | 1644 | | |
1640 | 1645 | | |
1641 | 1646 | | |
| |||
0 commit comments