HomeFreeBSD

libalias: Fix -Wcast-align compiler warnings

Description

libalias: Fix -Wcast-align compiler warnings

This fixes -Wcast-align warnings caused by the underaligned struct ip.
This also silences them in the public functions by changing the function
signature from char * to void *. This is source and binary compatible and
avoids the -Wcast-align warning.

Reviewed By: ae, gbe (manpages)
Differential Revision: https://reviews.freebsd.org/D27882

Details

Provenance
arichardsonAuthored on Jan 19 2021, 11:32 AM
Reviewer
ae
Differential Revision
D27882: libalias: Fix -Wcast-align compiler warnings
Parents
rG4bbfe4bf08d6: loader: comment on rgb_to_color_index()
Branches
Unknown
Tags
Unknown