aboutsummaryrefslogtreecommitdiffstats
path: root/common/recipes-devtools/codexl/codexl/0006-modify-compiler_base_flags.patch
blob: f085631c90ade5f6640029d0dba1ec209142685f (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
From a258f5aac8d3bc639ff7afa4a0c4f17ab23f353a Mon Sep 17 00:00:00 2001
From: Adeel Arshad <adeel_arshad@mentor.com>
Date: Fri, 7 Oct 2016 17:10:51 +0500
Subject: [PATCH] modify compiler_base_flags

Omit warning/error on unused and uninitialized variables.

Signed-off-by: Adeel Arshad <adeel_arshad@mentor.com>
---
 Common/Src/SCons/CXL_init.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Common/Src/SCons/CXL_init.py b/Common/Src/SCons/CXL_init.py
index 0672013..d9e3710 100755
--- a/Common/Src/SCons/CXL_init.py
+++ b/Common/Src/SCons/CXL_init.py
@@ -200,7 +200,7 @@ def initInstallDirs (env) :
     env['ENV']['CXL_webhelp_dir'] = env['CXL_webhelp_dir']
 
 def initCompilerFlags (env) :
-    compiler_base_flags = " -Wall -Werror -Wextra -g -fmessage-length=0 -Wno-unknown-pragmas -pthread -std=c++11 -D_LINUX"    
+    compiler_base_flags = " -Wall -Werror -Wextra -g -fmessage-length=0 -Wno-unknown-pragmas -Wno-unused-variable -Wno-maybe-uninitialized -pthread -std=c++11 -D_LINUX -D_GLIBCXX_USE_CXX11_ABI=0"    
     linker_base_flags = ''
     
     if (env['CXL_build'] == 'debug'):
-- 
1.9.1