Deleted Added
full compact
bsd.sys.mk (246880) bsd.sys.mk (249657)
1# $FreeBSD: head/share/mk/bsd.sys.mk 246880 2013-02-16 20:17:31Z dim $
1# $FreeBSD: head/share/mk/bsd.sys.mk 249657 2013-04-19 19:45:00Z ed $
2#
3# This file contains common settings used for building FreeBSD
4# sources.
5
6# Enable various levels of compiler warning checks. These may be
7# overridden (e.g. if using a non-gcc compiler) by defining NO_WARNS.
8
9# for GCC: http://gcc.gnu.org/onlinedocs/gcc-4.2.1/gcc/Warning-Options.html

--- 39 unchanged lines hidden (view full) ---

49 || !defined(NO_WCAST_ALIGN.clang))
50CWARNFLAGS+= -Wcast-align
51.endif # !NO_WCAST_ALIGN && (!CLANG || !NO_WCAST_ALIGN.clang)
52.endif # WARNS >= 4
53# BDECFLAGS
54.if ${WARNS} >= 6
55CWARNFLAGS+= -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls\
56 -Wold-style-definition
2#
3# This file contains common settings used for building FreeBSD
4# sources.
5
6# Enable various levels of compiler warning checks. These may be
7# overridden (e.g. if using a non-gcc compiler) by defining NO_WARNS.
8
9# for GCC: http://gcc.gnu.org/onlinedocs/gcc-4.2.1/gcc/Warning-Options.html

--- 39 unchanged lines hidden (view full) ---

49 || !defined(NO_WCAST_ALIGN.clang))
50CWARNFLAGS+= -Wcast-align
51.endif # !NO_WCAST_ALIGN && (!CLANG || !NO_WCAST_ALIGN.clang)
52.endif # WARNS >= 4
53# BDECFLAGS
54.if ${WARNS} >= 6
55CWARNFLAGS+= -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls\
56 -Wold-style-definition
57.if ${COMPILER_TYPE} == "clang" && !defined(EARLY_BUILD) && \
58 !defined(NO_WMISSING_VARIABLE_DECLARATIONS)
59CWARNFLAGS+= -Wmissing-variable-declarations
60.endif
57.endif # WARNS >= 6
58.if ${WARNS} >= 2 && ${WARNS} <= 4
59# XXX Delete -Wuninitialized by default for now -- the compiler doesn't
60# XXX always get it right.
61CWARNFLAGS+= -Wno-uninitialized
62.endif # WARNS >=2 && WARNS <= 4
63CWARNFLAGS+= -Wno-pointer-sign
64# Clang has more warnings enabled by default, and when using -Wall, so if WARNS

--- 79 unchanged lines hidden ---
61.endif # WARNS >= 6
62.if ${WARNS} >= 2 && ${WARNS} <= 4
63# XXX Delete -Wuninitialized by default for now -- the compiler doesn't
64# XXX always get it right.
65CWARNFLAGS+= -Wno-uninitialized
66.endif # WARNS >=2 && WARNS <= 4
67CWARNFLAGS+= -Wno-pointer-sign
68# Clang has more warnings enabled by default, and when using -Wall, so if WARNS

--- 79 unchanged lines hidden ---