diff --git a/README.md b/README.md
index 61905d528bc0a697a4b33d2b2d8c786c7e70be66..275a550de54f2967be0a87ee0679f82b9a62df5c 100644
--- a/README.md
+++ b/README.md
@@ -48,19 +48,7 @@ Use of shared libraries can be enforced by setting the GYP_DEFINES environment v
 
     export GYP_DEFINES=component=shared_library
 
-  Or by using the include.gypi mechanism described below:
-
-### Compiler Warnings treated as Errors (-Werror) ###
-On Linux you may get build errors due to -Werror. Create ~/.gyp/include.gypi with the following contents:
-
-    {
-        'variables': {
-            'werror%': '',
-            'component%': 'shared_library',
-        },
-    }
-
-So afterwards you have to re-create the ninja files by running "qmake -r"
+  Or by using the ~/.gyp/include.gypi mechanism.
 
 ### Use external Chromium sources ###
 If you want to use external chromium sources instead of the submodule provided in the QtWebEngine repository,
diff --git a/src/core/qtwebengine_extras.gypi b/src/core/qtwebengine_extras.gypi
index 95c5c56278fea724c1ec50c373199cb1a7a634e2..f4d3e38b7a78f1518963c50c1ee9e2dabb201a1f 100644
--- a/src/core/qtwebengine_extras.gypi
+++ b/src/core/qtwebengine_extras.gypi
@@ -1,4 +1,7 @@
 {
+  'variables': {
+    'werror%': '',
+  },
   'target_defaults': {
     # patterns used to exclude chromium files from the build when we have a drop-in replacement
     'sources/': [