Page MenuHomeFreeBSD

libcasper: fix warnings when _ALIGN preserves types
Needs ReviewPublic

Authored by brooks on Thu, Nov 27, 3:34 PM.

Details

Reviewers
kib
Group Reviewers
cheri
Summary

Without the void * casts, the compiler complains about an allignment
requirement increase.

Obtained from: CheriBSD
Effort: CHERI upstreaming
Sponsored by: DARPA, AFRL

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 68887
Build 65770: arc lint + arc unit

Event Timeline

lib/libcasper/services/cap_grp/cap_grp.c
105

I do not understand neither the old code, nor the new one.
After *bufferp is evaluated, we get the char * value, which is then aligned. Why is it cast to char ** at all?