summaryrefslogtreecommitdiff
path: root/pkgtools
diff options
context:
space:
mode:
authornia <nia@pkgsrc.org>2021-06-18 12:17:34 +0000
committernia <nia@pkgsrc.org>2021-06-18 12:17:34 +0000
commitb4d212c45aad14291ac41f613364ccbe9c640cfb (patch)
tree4cb656375461f19d844af5062076493a686ea457 /pkgtools
parenta396c9d8c0056d1d744b26122751d31304a830cb (diff)
downloadpkgsrc-b4d212c45aad14291ac41f613364ccbe9c640cfb.tar.gz
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 (limited to 'pkgtools')
-rw-r--r--pkgtools/bootstrap-mk-files/files/bsd.sys.mk21
1 files changed, 1 insertions, 20 deletions
diff --git a/pkgtools/bootstrap-mk-files/files/bsd.sys.mk b/pkgtools/bootstrap-mk-files/files/bsd.sys.mk
index e67724867fa..aa697890f2c 100644
--- a/pkgtools/bootstrap-mk-files/files/bsd.sys.mk
+++ b/pkgtools/bootstrap-mk-files/files/bsd.sys.mk
@@ -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)