From be2169d587f29e216c8047e052b493a0e351e61c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Joakim=20Nohlg=C3=A5rd?= <joakim.nohlgard@eistec.se>
Date: Thu, 14 Jun 2018 23:38:36 +0200
Subject: [PATCH] makefiles/cflags.inc.mk: Remove WERROR duplicate handling

WERROR already sets -Werror so this is not necessary.
---
 makefiles/cflags.inc.mk | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/makefiles/cflags.inc.mk b/makefiles/cflags.inc.mk
index bfd486e03f..f91d1a3bea 100644
--- a/makefiles/cflags.inc.mk
+++ b/makefiles/cflags.inc.mk
@@ -40,9 +40,6 @@ ifeq ($(shell $(CC) -Wstrict-prototypes -Werror=strict-prototypes -Wold-style-de
   # duplicated parameters don't hurt
   CFLAGS += -Wstrict-prototypes -Wold-style-definition
   CXXUWFLAGS += -Wstrict-prototypes -Wold-style-definition
-  ifeq ($(WERROR),1)
-    CFLAGS += -Werror=strict-prototypes -Werror=old-style-definition
-  endif
 endif
 
 # Unwanted flags for c++
-- 
GitLab