Index: src/Makefile
--- src/Makefile.orig	2016-01-02 16:23:53.000000000 +0100
+++ src/Makefile	2016-01-03 13:15:19.065626902 +0100
@@ -18,8 +18,8 @@
 DEPENDENCY_TARGETS=hiredis linenoise
 
 # Default settings
-STD=-std=c99 -pedantic
-WARN=-Wall -W
+STD=-std=c99
+WARN=
 OPT=$(OPTIMIZATION)
 
 PREFIX?=/usr/local
Index: src/mkreleasehdr.sh
--- src/mkreleasehdr.sh.orig	2016-01-02 16:23:53.000000000 +0100
+++ src/mkreleasehdr.sh	2016-01-03 13:15:19.065626902 +0100
@@ -1,6 +1,6 @@
 #!/bin/sh
 GIT_SHA1=`(git show-ref --head --hash=8 2> /dev/null || echo 00000000) | head -n1`
-GIT_DIRTY=`git diff --no-ext-diff 2> /dev/null | wc -l`
+GIT_DIRTY=`(git diff --no-ext-diff) 2>/dev/null | wc -l`
 BUILD_ID=`uname -n`"-"`date +%s`
 test -f release.h || touch release.h
 (cat release.h | grep SHA1 | grep $GIT_SHA1) && \
