version 1.149, 2011/09/25 22:26:33 |
version 1.149.6.1, 2012/02/18 07:34:01 |
Line 65 DEFWARNINGS?= yes |
|
Line 65 DEFWARNINGS?= yes |
|
.if (${DEFWARNINGS} == "yes") |
.if (${DEFWARNINGS} == "yes") |
CWARNFLAGS+= -Wall -Wno-main -Wno-format-zero-length -Wpointer-arith |
CWARNFLAGS+= -Wall -Wno-main -Wno-format-zero-length -Wpointer-arith |
CWARNFLAGS+= -Wmissing-prototypes -Wstrict-prototypes |
CWARNFLAGS+= -Wmissing-prototypes -Wstrict-prototypes |
|
CWARNFLAGS+= -Wold-style-definition |
CWARNFLAGS+= -Wswitch -Wshadow |
CWARNFLAGS+= -Wswitch -Wshadow |
CWARNFLAGS+= -Wcast-qual -Wwrite-strings |
CWARNFLAGS+= -Wcast-qual -Wwrite-strings |
CWARNFLAGS+= -Wno-unreachable-code |
CWARNFLAGS+= -Wno-unreachable-code |
Line 74 CWARNFLAGS+= -Wno-pointer-sign -Wno-attr |
|
Line 75 CWARNFLAGS+= -Wno-pointer-sign -Wno-attr |
|
${MACHINE_ARCH} == "sparc64" || ${MACHINE} == "prep" |
${MACHINE_ARCH} == "sparc64" || ${MACHINE} == "prep" |
CWARNFLAGS+= -Wextra -Wno-unused-parameter |
CWARNFLAGS+= -Wextra -Wno-unused-parameter |
. endif |
. endif |
|
. if ${MACHINE} == "i386" || ${MACHINE_ARCH} == "x86_64" |
|
CWARNFLAGS+= -Wold-style-definition |
|
. endif |
. endif |
. endif |
# Add -Wno-sign-compare. -Wsign-compare is included in -Wall as of GCC 3.3, |
# Add -Wno-sign-compare. -Wsign-compare is included in -Wall as of GCC 3.3, |
# but our sources aren't up for it yet. |
# but our sources aren't up for it yet. |
Line 83 CWARNFLAGS+= -Wno-sign-compare |
|
Line 87 CWARNFLAGS+= -Wno-sign-compare |
|
CWARNFLAGS.clang+= -Wno-unknown-pragmas -Wno-conversion \ |
CWARNFLAGS.clang+= -Wno-unknown-pragmas -Wno-conversion \ |
-Wno-self-assign |
-Wno-self-assign |
|
|
|
CWARNFLAGS.ah_regdomain.c= ${${ACTIVE_CC} == "clang":? \ |
|
-Wno-shift-count-negative -Wno-shift-count-overflow:} |
|
|
CFLAGS+= -ffreestanding -fno-zero-initialized-in-bss |
CFLAGS+= -ffreestanding -fno-zero-initialized-in-bss |
CFLAGS+= ${DEBUG} ${COPTS} |
CFLAGS+= ${DEBUG} ${COPTS} |
AFLAGS+= -D_LOCORE -Wa,--fatal-warnings |
AFLAGS+= -D_LOCORE -Wa,--fatal-warnings |