From e54f925b689055e37dedce98dbd4d9f33a8189a0 Mon Sep 17 00:00:00 2001 From: Li-Wen Hsu Date: Fri, 12 Apr 2019 18:35:14 +0000 Subject: [PATCH] Suppress old gcc warning about null format string This is workaround to make head build on gcc using architectures Sponsored by: The FreeBSD Foundation MFC-with: r346149 --- usr.bin/mandoc/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/usr.bin/mandoc/Makefile b/usr.bin/mandoc/Makefile index bd5e50e9857..ec35ec21d0f 100644 --- a/usr.bin/mandoc/Makefile +++ b/usr.bin/mandoc/Makefile @@ -97,6 +97,8 @@ SRCS= ${LIB_SRCS} \ WARNS?= 3 CFLAGS+= -DHAVE_CONFIG_H \ -I${SRCTOP}/lib/libopenbsd/ +# This can be removed after swtiching to newer gcc +CFLAGS.gcc+= -Wno-format LIBADD= openbsd z .include