diff options
author | Enji Cooper <1574099+ngie-eign@users.noreply.github.com> | 2023-05-12 21:11:07 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-12 21:11:07 -0700 |
commit | 4ebfd961873310cac894ffd579e4569f369e8990 (patch) | |
tree | 1a8ecadbdc80e2af635f7e272208350f15b062de /cpio/test/test_extract_cpio_lz4.c | |
parent | f180dcab3321149ef348e9899737db29eeaaecf0 (diff) | |
download | libarchive-4ebfd961873310cac894ffd579e4569f369e8990.tar.gz |
Fix FreeBSD builds with WARNS=6 (#1869)
WARNS=6 on FreeBSD passes several CFLAGS that causes the previous code
to fail with `-Wincompatible-pointer-types-discards-qualifiers` when
compiled with clang.
This particular change adjusts the code to be
`-Wincompatible-pointer-types-discards-qualifiers` clean. This change
changes the calls to use OSSL_PARAM macro abbreviated calls, instead of
calling more verbose (and less documented) callers.
While here, also address a `mac` object leak if `ctx` cannot be
allocated cleanly by always free'ing `mac` after it's been attached to
`ctx`.
Co-authored-by: Pierre Pronchery <pierre@freebsdfoundation.org>
Sponsored by: The FreeBSD Foundation
Signed-off-by: Enji Cooper <yaneurabeya@gmail.com>
Diffstat (limited to 'cpio/test/test_extract_cpio_lz4.c')
0 files changed, 0 insertions, 0 deletions