From c3e0639ab2fa07210b19f4a85f5e64e4de59fc61 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=BCrgen=20Buchm=C3=BCller?= <pullmoll@t-online.de>
Date: Sun, 23 Jul 2017 17:34:27 +0200
Subject: [PATCH] watchman: fix gcc7 build

---
 srcpkgs/watchman/template | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/srcpkgs/watchman/template b/srcpkgs/watchman/template
index 13249be821d..bb7de0da2ff 100644
--- a/srcpkgs/watchman/template
+++ b/srcpkgs/watchman/template
@@ -3,7 +3,7 @@ pkgname=watchman
 version=4.7.0
 revision=1
 build_style=gnu-configure
-configure_args="--disable-statedir"
+configure_args="--disable-statedir --disable-lenient"
 hostmakedepends="automake libtool"
 makedepends="pcre-devel"
 short_desc="Watches files and records, or triggers actions, when they change"
@@ -13,6 +13,8 @@ homepage="https://facebook.github.io/watchman/"
 distfiles="https://github.com/facebook/watchman/archive/v${version}.tar.gz"
 checksum=77c7174c59d6be5e17382e414db4907a298ca187747c7fcb2ceb44da3962c6bf
 
+CFLAGS="-Wno-error"
+
 pre_configure() {
 	NOCONFIGURE=1 ./autogen.sh
 }