diff options
author | Christiano F. Haesbaert <haesbaert@cvs.openbsd.org> | 2012-08-17 17:09:44 +0000 |
---|---|---|
committer | Christiano F. Haesbaert <haesbaert@cvs.openbsd.org> | 2012-08-17 17:09:44 +0000 |
commit | 842d9480d0577c62d6e42eea2ca9361441b2e231 (patch) | |
tree | 5f86a1b7771071e067b34f27a9bad63e94b600e8 /share | |
parent | 00059070bba1a9212d7e10bb2cdaa66485021b37 (diff) |
Add a default CDIAGFLAGS, so that programs may be enable warnings by
making "make WARNINGS=Yes" without having to add a bunch of CDIAGFLAGS
to its makefile.
sure deraadt@
Diffstat (limited to 'share')
-rw-r--r-- | share/mk/bsd.own.mk | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/share/mk/bsd.own.mk b/share/mk/bsd.own.mk index d2a76d29eb0..57547fe1cfc 100644 --- a/share/mk/bsd.own.mk +++ b/share/mk/bsd.own.mk @@ -1,4 +1,4 @@ -# $OpenBSD: bsd.own.mk,v 1.118 2012/08/14 20:14:35 matthew Exp $ +# $OpenBSD: bsd.own.mk,v 1.119 2012/08/17 17:09:43 haesbaert Exp $ # $NetBSD: bsd.own.mk,v 1.24 1996/04/13 02:08:09 thorpej Exp $ # Host-specific overrides @@ -81,10 +81,10 @@ LIBGRP?= ${BINGRP} LIBOWN?= ${BINOWN} LIBMODE?= ${NONBINMODE} -DOCDIR?= /usr/share/doc +DOCDIR?= /usr/share/doc DOCGRP?= bin DOCOWN?= root -DOCMODE?= ${NONBINMODE} +DOCMODE?= ${NONBINMODE} LKMDIR?= /usr/lkm LKMGRP?= ${BINGRP} @@ -101,6 +101,12 @@ LOCALEGRP?= wheel LOCALEOWN?= root LOCALEMODE?= ${NONBINMODE} +.if !defined(CDIAGFLAGS) +CDIAGFLAGS= -Wall -Wpointer-arith -Wuninitialized -Wstrict-prototypes +CDIAGFLAGS+= -Wmissing-prototypes -Wunused -Wsign-compare -Wbounded +CDIAGFLAGS+= -Wshadow +.endif + # Shared files for system gnu configure, not used yet GNUSYSTEM_AUX_DIR?=${BSDSRCDIR}/share/gnu |