Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/crypto openssl: CWARNFLAGS, not COPTS, for -Wno-error=...



details:   https://anonhg.NetBSD.org/src/rev/ff88b24dc293
branches:  trunk
changeset: 376007:ff88b24dc293
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Thu May 25 19:12:51 2023 +0000

description:
openssl: CWARNFLAGS, not COPTS, for -Wno-error=...

COPTS gets put too early, so these are cancelled out by -W flags
added later by bsd.sys.mk.  (How did this ever work???)

diffstat:

 crypto/Makefile.openssl |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (24 lines):

diff -r cec08c4fb26a -r ff88b24dc293 crypto/Makefile.openssl
--- a/crypto/Makefile.openssl   Thu May 25 19:12:42 2023 +0000
+++ b/crypto/Makefile.openssl   Thu May 25 19:12:51 2023 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile.openssl,v 1.18 2023/05/25 19:12:42 riastradh Exp $
+#      $NetBSD: Makefile.openssl,v 1.19 2023/05/25 19:12:51 riastradh Exp $
 
 .ifndef _MAKEFILE_OPENSSL_INCLUDED
 _MAKEFILE_OPENSSL_INCLUDED=1
@@ -7,10 +7,10 @@
 WARNS=3
 
 # would require changing a lot of code
-COPTS+= -Wno-error=cast-qual
-COPTS+= -Wno-error=char-subscripts # XXX likely real ctype(3) missing cast bugs
-COPTS+= -Wno-error=missing-field-initializers
-COPTS+= -Wno-error=shadow
+CWARNFLAGS+= -Wno-error=cast-qual
+CWARNFLAGS+= -Wno-error=char-subscripts # XXX likely real ctype(3) missing cast bugs
+CWARNFLAGS+= -Wno-error=missing-field-initializers
+CWARNFLAGS+= -Wno-error=shadow
 
 CWARNFLAGS.gcc+= -Wno-error=discarded-qualifiers
 CWARNFLAGS.clang+= -Wno-error=ignored-qualifiers



Home | Main Index | Thread Index | Old Index