diff --git a/srcpkgs/libnsgif/template b/srcpkgs/libnsgif/template
index eabae9306ad..7b99b20148b 100644
--- a/srcpkgs/libnsgif/template
+++ b/srcpkgs/libnsgif/template
@@ -9,6 +9,7 @@ homepage="http://www.netsurf-browser.org"
 license="MIT"
 distfiles="http://download.netsurf-browser.org/libs/releases/${pkgname}-${version}-src.tar.gz"
 checksum=dd6948af5c054224489beaa4b4cc13c2c4f695d5bdee7e58ec2370c53cd9faa5
+CFLAGS="-Wno-error"
 
 do_build() {
 	make ${makejobs} COMPONENT_TYPE=lib-shared PREFIX=/usr