diff options
author | nia <nia@pkgsrc.org> | 2021-06-18 12:17:34 +0000 |
---|---|---|
committer | nia <nia@pkgsrc.org> | 2021-06-18 12:17:34 +0000 |
commit | b4d212c45aad14291ac41f613364ccbe9c640cfb (patch) | |
tree | 4cb656375461f19d844af5062076493a686ea457 /pkgtools/bootstrap-mk-files | |
parent | a396c9d8c0056d1d744b26122751d31304a830cb (diff) | |
download | pkgsrc-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/bootstrap-mk-files')
-rw-r--r-- | pkgtools/bootstrap-mk-files/files/bsd.sys.mk | 21 |
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) |