summaryrefslogtreecommitdiffstats
path: root/patches/0001-remove-Wno-deprecated-register-from-common.gypi.patch
blob: 90dbe8da0006fb76858ae7e7fbb1d070f2cbf9da (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
From 06b7d7b85c53a6c5b39eff247dd5ce869956f411 Mon Sep 17 00:00:00 2001
From: Zeno Albisser <zeno.albisser@digia.com>
Date: Thu, 1 Aug 2013 14:03:14 +0200
Subject: [PATCH] remove -Wno-deprecated-register from common.gypi.

This warning is not supported by recent clang versions
shipping with XCode. Therefore replacing it with -Wno-deprecated.
This is a bit a too broad fix, but the best we can do for now.
It seems that the flag is still supported in upstream clang.
---
 build/common.gypi | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/build/common.gypi b/build/common.gypi
index 07abb6a..19ef09c 100644
--- a/build/common.gypi
+++ b/build/common.gypi
@@ -3166,7 +3166,7 @@
               # Clang considers the `register` keyword as deprecated, but e.g.
               # code generated by flex (used in angle) contains that keyword.
               # http://crbug.com/255186
-              '-Wno-deprecated-register',
+              '-Wno-deprecated',
             ],
             'cflags!': [
               # Clang doesn't seem to know know this flag.
@@ -3877,7 +3877,7 @@
                 # Clang considers the `register` keyword as deprecated, but e.g.
                 # code generated by flex (used in angle) contains that keyword.
                 # http://crbug.com/255186
-                '-Wno-deprecated-register',
+                '-Wno-deprecated',
               ],
               'OTHER_CPLUSPLUSFLAGS': [
                 # gnu++11 instead of c++11 is needed because some code uses
-- 
1.7.12.4 (Apple Git-37)