Commit b271e9a
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 a1de967 commit b271e9a
1 file changed
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2253 | 2253 | | |
2254 | 2254 | | |
2255 | 2255 | | |
| 2256 | + | |
| 2257 | + | |
| 2258 | + | |
| 2259 | + | |
| 2260 | + | |
| 2261 | + | |
| 2262 | + | |
2256 | 2263 | | |
2257 | 2264 | | |
2258 | 2265 | | |
| |||
0 commit comments