Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit 4bd69bb

Browse files
[[ Gyp ]] Update the lc-compile toolchain to use silence_warnings
1 parent c092190 commit 4bd69bb

File tree

12 files changed

+42
-60
lines changed

12 files changed

+42
-60
lines changed

common.gypi

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
'config/perl.gypi',
1111
'config/target_os.gypi',
1212
'config/thirdparty.gypi',
13-
'config/warnings.gypi',
1413
'config/yacc.gypi',
1514
],
1615
}

config/android-settings.gypi

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
{
22
'cflags':
33
[
4-
'-Wall',
5-
'-Wextra',
64
'-fstrict-aliasing',
75
'-fvisibility=hidden',
86
],
@@ -42,6 +40,7 @@
4240
[
4341
'-w', # Disable warnings
4442
'-fpermissive', # Be more lax with old code
43+
'-Wno-return-type',
4544
],
4645
},
4746
],

config/ios.gypi

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,11 @@
196196
'xcode_settings':
197197
{
198198
'GCC_INHIBIT_ALL_WARNINGS': 'YES',
199+
200+
'WARNING_CFLAGS':
201+
[
202+
'-Wno-return-type',
203+
],
199204
},
200205
},
201206
],

config/linux-settings.gypi

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@
88
'exe_suffix': '',
99
'debug_info_suffix': '.dbg',
1010

11-
'c++_std': '<!(echo ${CXX_STD:-gnu++03})',
12-
13-
'silence_warnings': 0,
11+
'c++_std': '<!(echo ${CXX_STD:-c++03})',
1412
},
1513

1614
'defines':
@@ -77,6 +75,7 @@
7775
[
7876
'-w', # Disable warnings
7977
'-fpermissive', # Be more lax with old code
78+
'-Wno-return-type',
8079
],
8180

8281
'cflags_c':
@@ -89,8 +88,6 @@
8988

9089
'cflags':
9190
[
92-
'-Wall',
93-
'-Wextra',
9491
'-fstrict-aliasing',
9592
'-fvisibility=hidden',
9693
],

config/linux.gypi

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@
1111

1212
'target_defaults':
1313
{
14+
'variables':
15+
{
16+
'silence_warnings': 0,
17+
},
18+
1419
'includes':
1520
[
1621
'linux-settings.gypi',

config/mac.gypi

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,10 @@
126126
'xcode_settings':
127127
{
128128
'GCC_INHIBIT_ALL_WARNINGS': 'YES',
129+
'WARNING_CFLAGS':
130+
[
131+
'-Wno-return-type',
132+
],
129133
},
130134
},
131135
],

config/warnings.gypi

Lines changed: 0 additions & 38 deletions
This file was deleted.

toolchain/gentle/gentle/gentle.gyp

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,13 @@
1212

1313
'toolsets': ['host','target'],
1414

15-
'suppress_warnings': 1,
16-
1715
'product_name': 'gentle-<(_toolset)',
18-
16+
17+
'variables':
18+
{
19+
'silence_warnings': 1,
20+
},
21+
1922
'dependencies':
2023
[
2124
'./grts.gyp:grts'

toolchain/gentle/gentle/grts.gyp

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,13 @@
1212

1313
'toolsets': ['host','target'],
1414

15-
'suppress_warnings': 1,
16-
1715
'product_name': 'grts',
18-
16+
17+
'variables':
18+
{
19+
'silence_warnings': 1,
20+
},
21+
1922
'sources':
2023
[
2124
'grts.c',

toolchain/gentle/reflex/reflex.gyp

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,13 @@
1212

1313
'toolsets': ['host','target'],
1414

15-
'suppress_warnings': 1,
16-
1715
'product_name': 'reflex-<(_toolset)',
18-
16+
17+
'variables':
18+
{
19+
'silence_warnings': 1,
20+
},
21+
1922
'direct_dependent_settings':
2023
{
2124
'variables':

0 commit comments

Comments
 (0)