Commit eabfab6
committed
Don't derive comparison traits for
In `cust_raw`, we derive `PartialEq`/`Eq`/`PartialOrd`/`Ord` for all
types by default. However, `cudaHostNodeParams` and
`cudaHostNodeParamsV2` each contain a raw pointer, which causes this
warning:
```
function pointer comparisons do not produce meaningful results since
their addresses are not guaranteed to be unique
```
bindgen has a `no_partialeq` function that disables all of these derives
for relevant types. Only `PartialOrd`/`Ord` cause a problem, but there
is no easy way to disable those while keeping `PartialEq`/`Eq`, so this
will have to do. We already use `no_partialeq` for
`CUDA_HOST_NODE_PARAMS.*` and various other types.cudaHostNameParams.*.1 parent e4e5ed3 commit eabfab6
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
192 | 192 | | |
193 | 193 | | |
194 | 194 | | |
| 195 | + | |
195 | 196 | | |
196 | 197 | | |
197 | 198 | | |
| |||
0 commit comments