pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/pkgtools/bootstrap-mk-files/files bootstrap-mk: Remove...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/a6b7ecc72b1b
branches:  trunk
changeset: 454769:a6b7ecc72b1b
user:      nia <nia%pkgsrc.org@localhost>
date:      Fri Jun 18 12:17:34 2021 +0000

description:
bootstrap-mk: Remove GCC/Clang-specific warning flags

These are leftover from the NetBSD base system where having lots
of specific warning flags makes sense because the system is compiled
with -Werror, but here they just cause portability problems.

Reported as breaking the bootstrap on HP-UX by Lehel Bernadt on
pkgsrc-users@.

diffstat:

 pkgtools/bootstrap-mk-files/files/bsd.sys.mk |  21 +--------------------
 1 files changed, 1 insertions(+), 20 deletions(-)

diffs (31 lines):

diff -r c66a64308d22 -r a6b7ecc72b1b pkgtools/bootstrap-mk-files/files/bsd.sys.mk
--- a/pkgtools/bootstrap-mk-files/files/bsd.sys.mk      Fri Jun 18 12:15:22 2021 +0000
+++ b/pkgtools/bootstrap-mk-files/files/bsd.sys.mk      Fri Jun 18 12:17:34 2021 +0000
@@ -1,26 +1,7 @@
-#      $NetBSD: bsd.sys.mk,v 1.4 2017/08/02 09:38:06 maya Exp $
+#      $NetBSD: bsd.sys.mk,v 1.5 2021/06/18 12:17:34 nia Exp $
 #
 # Overrides used for NetBSD source tree builds.
 
-.if defined(WARNS)
-.if ${WARNS} > 0
-CFLAGS+= -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith
-# XXX Delete -Wuninitialized by default for now -- the compiler doesn't
-# XXX always get it right.
-CFLAGS+= -Wno-uninitialized
-.endif
-.if ${WARNS} > 1
-CFLAGS+=-Wreturn-type -Wcast-qual -Wpointer-arith -Wwrite-strings
-CFLAGS+=-Wswitch -Wshadow
-.endif
-.endif
-
-.if defined(WFORMAT) && defined(FORMAT_AUDIT)
-.if ${WFORMAT} > 1
-CFLAGS+=-Wnetbsd-format-audit -Wno-format-extra-args
-.endif
-.endif
-
 CFLAGS+= ${CWARNFLAGS}
 
 .if defined(DESTDIR)



Home | Main Index | Thread Index | Old Index