Skip to content

Commit

Permalink
libarchive: Avoid a build error with OpenSSL 3.0.8
Browse files Browse the repository at this point in the history
This disables warning-errors for:

    archive_hmac.c:241:64: error: passing argument 2 of
    'OSSL_PARAM_construct_utf8_string' discards 'const' qualifier from
    pointer target type [-Werror=discarded-qualifiers]
  • Loading branch information
khorben committed May 23, 2023
1 parent 12d7220 commit c9f9966
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/libarchive/Makefile.inc
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ CFLAGS+= -DPLATFORM_CONFIG_H=\"${.CURDIR}/config_freebsd.h\"
CFLAGS+= -DWITH_OPENSSL
CFLAGS+= -DOPENSSL_API_COMPAT=0x10100000L
LIBADD+= crypto
#XXX for OpenSSL 3 with GCC12
.if ${COMPILER_TYPE} == "gcc" && ${COMPILER_VERSION} >= 120100
CFLAGS.archive_hmac.c+= -Wno-error=discarded-qualifiers
.endif
.else
LIBADD+= md
.endif
Expand Down

0 comments on commit c9f9966

Please sign in to comment.