--- m4/windowmaker.m4.orig	Tue Jan 19 21:43:01 2016
+++ m4/windowmaker.m4	Tue Jan 19 21:43:20 2016
@@ -195,7 +195,7 @@
      wm_save_CFLAGS="$CFLAGS"
      for wm_arg in "% yes" "-D_GNU_SOURCE"; do
          AS_IF([wm_fn_lib_try_compile "stdlib.h" "const char *h;" "h = secure_getenv(\"HOME\")" dnl
-                    "`echo "$wm_arg" | sed -e 's, *%.*$,,' ` -Werror=implicit-function-declaration"],
+                    "`echo "$wm_arg" | sed -e 's, *%.*$,,' ` -Werror=implicit-function-declaration -pedantic-error"],
              [wm_cv_func_secure_getenv="`echo "$wm_arg" | sed -e 's,^.*% *,,' `"
               break])
      done
