increase -Werror resilience

for bin/, commands/, libexec/, sbin/, test/, usr.bin/ and usr.sbin/.

Change-Id: I8fa12c3cd86865311cef71b7faa7cf4fa785174f
This commit is contained in:
Ben Gras
2013-08-14 12:29:26 +00:00
committed by Gerrit Code Review
parent 5c584cedf8
commit 3161c603a6
21 changed files with 63 additions and 8 deletions

View File

@@ -12,5 +12,6 @@ DPADD+=${LIBPROP}
# LSC Does not compile without any warnings...
NOGCCERROR:=yes
NOCLANGERROR:=yes
.include <bsd.prog.mk>

View File

@@ -265,8 +265,13 @@ print_mtime(time_t t)
}
#ifdef __minix
__dead void
catch(int n)
#else
void
catch(int n)
#endif
{
if (ckfinish) (*ckfinish)(0);
_exit(FSCK_EXIT_SIGNALLED);

View File

@@ -1,6 +1,10 @@
# $NetBSD: Makefile,v 1.4 2012/03/24 08:22:24 joerg Exp $
# @(#)Makefile 8.2 (Berkeley) 3/27/94
.if defined(__MINIX)
WARNS=3
.endif
WARNS?= 4
CWARNFLAGS+= -Wno-sign-compare