Supress clang warning for FreeBSD printf %b and %D formats

MFC after:	2 weeks
This commit is contained in:
Sean Bruno 2014-07-22 04:37:47 +00:00
parent 484b4fd46c
commit 38d02a94fa
2 changed files with 7 additions and 0 deletions

View file

@ -16,4 +16,8 @@ CFLAGS+= -I${.CURDIR}/../../../../lib/libstand
# Pick up the bootstrap header for some interface items
CFLAGS+= -I${.CURDIR}/../../common
# Suppress warning from clang for FreeBSD %b and %D formats
CFLAGS+= -fformat-extensions
.include <bsd.lib.mk>

View file

@ -55,6 +55,9 @@ CFLAGS+= -I${.CURDIR}/../../common -I${.CURDIR}/../common \
# the location of libstand
CFLAGS+= -I${.CURDIR}/../../../../lib/libstand/
# Suppress warning from clang for FreeBSD %b and %D formats
CFLAGS+= -fformat-extensions
.if ${MACHINE_CPUARCH} == "amd64"
CLEANFILES+= machine
machine: