aboutsummaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-graphics/glcompbench/glcompbench/0001-waf-Disable-errors-due-to-Wdeprecated.patch
blob: deb60161ca9cdaa1762288b68f8c4e914ce7167a (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
From 49297e2fbe0420a255cbe67989d0ec539125412c Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Sun, 23 Apr 2017 10:38:24 -0700
Subject: [PATCH] waf: Disable errors due to -Wdeprecated

throw() has been deprecated in c++11 and removed
from c++17, gcc7 is more pedandic about this warning
we therefore add a workaround to ignore this warning
for now.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 wscript | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/wscript b/wscript
index 485a9fb..7f59761 100644
--- a/wscript
+++ b/wscript
@@ -79,7 +79,7 @@ def configure(ctx):
             ctx.check_cfg(package = pkg, uselib_store = uselib, args = '--cflags --libs',
                           mandatory = True)
 
-    ctx.env.append_unique('CXXFLAGS', '-Wall -Werror -std=c++11 -Wextra'.split(' '))
+    ctx.env.append_unique('CXXFLAGS', '-Wall -Werror -std=c++11 -Wextra -Wno-error=deprecated'.split(' '))
 
     # Prepend -O# and -g flags so that they can be overriden by the CFLAGS environment variable
     if Options.options.opt:
-- 
2.12.2