Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/crypto/external/bsd/openssl/lib openssl: Suppress clang warn...
details: https://anonhg.NetBSD.org/src/rev/a11fb6181abd
branches: trunk
changeset: 376001:a11fb6181abd
user: riastradh <riastradh%NetBSD.org@localhost>
date: Thu May 25 16:05:27 2023 +0000
description:
openssl: Suppress clang warnings for using string literals as char *.
Not sure this is actually forbidden by the C standard. There may be
bugs lurking here, but OpenSSL uses this extensively, so let's just
get the build going again.
diffstat:
crypto/external/bsd/openssl/lib/libapps/Makefile | 5 ++++-
crypto/external/bsd/openssl/lib/libcrypto/Makefile | 6 +++++-
crypto/external/bsd/openssl/lib/libssl/Makefile | 6 +++++-
3 files changed, 14 insertions(+), 3 deletions(-)
diffs (59 lines):
diff -r 161ce225d64f -r a11fb6181abd crypto/external/bsd/openssl/lib/libapps/Makefile
--- a/crypto/external/bsd/openssl/lib/libapps/Makefile Thu May 25 15:52:28 2023 +0000
+++ b/crypto/external/bsd/openssl/lib/libapps/Makefile Thu May 25 16:05:27 2023 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.4 2023/05/25 15:52:28 riastradh Exp $
+# $NetBSD: Makefile,v 1.5 2023/05/25 16:05:27 riastradh Exp $
# RCSid:
# Id: Makefile,v 1.33 1998/11/11 11:53:53 sjg Exp
@@ -33,6 +33,9 @@ CPPFLAGS+= -I${OPENSSLSRC}/../include
CPPFLAGS+= -I${OPENSSLSRC}/apps/lib
CPPFLAGS+= -I${OPENSSLSRC}/apps/include
+# OpenSSL extensively uses string literals as char *, which clang
+# (reasonably if not exactly rightly) objects to.
+CWARNFLAGS.clang+=-Wno-error=incompatible-pointer-types-discards-qualifiers
CRYPTODIST= ${NETBSDSRCDIR}/crypto
OPENSSLINC= ${OPENSSLSRC}/include/openssl
diff -r 161ce225d64f -r a11fb6181abd crypto/external/bsd/openssl/lib/libcrypto/Makefile
--- a/crypto/external/bsd/openssl/lib/libcrypto/Makefile Thu May 25 15:52:28 2023 +0000
+++ b/crypto/external/bsd/openssl/lib/libcrypto/Makefile Thu May 25 16:05:27 2023 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.30 2023/05/25 15:52:28 riastradh Exp $
+# $NetBSD: Makefile,v 1.31 2023/05/25 16:05:28 riastradh Exp $
# RCSid:
# Id: Makefile,v 1.33 1998/11/11 11:53:53 sjg Exp
@@ -31,6 +31,10 @@ CPPFLAGS+= -I${OPENSSLSRC}/crypto/asn1 -
CPPFLAGS+= -I${OPENSSLSRC}/crypto/modes
CPPFLAGS+= -I${OPENSSLSRC}/../include
+# OpenSSL extensively uses string literals as char *, which clang
+# (reasonably if not exactly rightly) objects to.
+CWARNFLAGS.clang+=-Wno-error=incompatible-pointer-types-discards-qualifiers
+
CRYPTODIST= ${NETBSDSRCDIR}/crypto
OPENSSLINC= ${OPENSSLSRC}/include/openssl
diff -r 161ce225d64f -r a11fb6181abd crypto/external/bsd/openssl/lib/libssl/Makefile
--- a/crypto/external/bsd/openssl/lib/libssl/Makefile Thu May 25 15:52:28 2023 +0000
+++ b/crypto/external/bsd/openssl/lib/libssl/Makefile Thu May 25 16:05:27 2023 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.15 2023/05/25 15:52:29 riastradh Exp $
+# $NetBSD: Makefile,v 1.16 2023/05/25 16:05:28 riastradh Exp $
# RCSid:
# Id: Makefile,v 1.33 1998/11/11 11:53:53 sjg Exp
@@ -24,6 +24,10 @@ CWARNFLAGS.clang+= -Wno-unused-value
# XXX: This warning seems to trigger incorrectly
CWARNFLAGS.clang+= -Wno-atomic-alignment
+# OpenSSL extensively uses string literals as char *, which clang
+# (reasonably if not exactly rightly) objects to.
+CWARNFLAGS.clang+=-Wno-error=incompatible-pointer-types-discards-qualifiers
+
LIB= ssl
CPPFLAGS+= -Dlib${LIB} -I${OPENSSLSRC} -I${OPENSSLSRC}/crypto
CPPFLAGS+= -I${OPENSSLSRC}/include
Home |
Main Index |
Thread Index |
Old Index