Have PCTRIE_RECLAIM_CALLBACK typecast one function pointer type to another, to relieve the writer of the call back function from having to cast its first argument from void* to member type.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
Comment Actions
Get rid of a callback function pointer type that would only create a namespace collision someday when somebody used two pctries in the same compilation unit.
Comment Actions
LGTM. Did you check that clang and gcc don't produce warnings? I don't think they should. I can try applying and checking this evening if you haven't already.
Comment Actions
I checked for warnings, nothing new in subr_pctrie.c, subr_rangeset.c, or swap_pager.c. Good to go.
gcc13 is producing a few warnings for subr_pctrie.c, but I don't think any are actual problems. meta file here:
https://people.freebsd.org/~rlibby/gcc13-subr_pctrie.o.meta
- The -Wcast-qual stuff is due to atomic_load_ptr, nothing to be done about that here for pctrie.
- The -Wmaybe-uninitialized I'm pretty sure is a false positive. It could be silenced with a NULL initialization though.
- The -Wattributes I think are harmless... Not sure if there's a nice way to silence those.