Commit 25e5c02
Silence UBSan warnings on Cinder's GC hooks
Summary:
UBSan is picky about calling functions through technically-incompatible
pointers, since this is technically undefined behaviour. It's not a useful
warning in this case (we're calling it with a different pointer type, but
PyMem_RawFree takes a void* anyway) and we don't want to pay the cost of an
extra indirection just to avoid this technically-undefined behaviour, so
just silence it.
Reviewed By: alexmalyshev
Differential Revision: D114423869
fbshipit-source-id: 8a664022830b89c38c932ab8f946b54bf671d8ad1 parent 9419167 commit 25e5c02
1 file changed
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2135 | 2135 | | |
2136 | 2136 | | |
2137 | 2137 | | |
| 2138 | + | |
| 2139 | + | |
| 2140 | + | |
| 2141 | + | |
| 2142 | + | |
| 2143 | + | |
| 2144 | + | |
2138 | 2145 | | |
2139 | 2146 | | |
2140 | 2147 | | |
| |||
0 commit comments