Skip to content

Commit 284518c

Browse files
committed
Unify -Wno arguments generation
commit_hash:33157feb41c65ab08e797adea3b0be5ed6e5bc3f
1 parent c46068e commit 284518c

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

build/ymake_conf.py

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1468,15 +1468,7 @@ def __init__(self, tc, build):
14681468
'-Wall',
14691469
'-Wextra',
14701470
]
1471-
self.cxx_warnings = [
1472-
# Issue a warning if certain overload is hidden due to inheritance
1473-
'-Woverloaded-virtual',
1474-
]
1475-
1476-
# Disable some warnings which will fail compilation at the time
1477-
self.c_warnings += [
1478-
'-Wno-parentheses',
1479-
]
1471+
self.cxx_warnings = []
14801472

14811473
self.c_defines = ['${hide:CPP_FAKEID}']
14821474
if self.target.is_android:
@@ -1537,13 +1529,16 @@ def __init__(self, tc, build):
15371529
self.sfdl_flags.append('-Qunused-arguments')
15381530

15391531
self.c_warnings += [
1532+
'-Wno-parentheses',
15401533
'-Wno-implicit-const-int-float-conversion',
1541-
# For nvcc to accept the above.
1534+
# For nvcc to accept the above
15421535
'-Wno-unknown-warning-option',
15431536
]
15441537

15451538
self.cxx_warnings += [
15461539
'-Wimport-preprocessor-directive-pedantic',
1540+
# Issue a warning if certain overload is hidden due to inheritance
1541+
'-Woverloaded-virtual',
15471542
'-Wno-ambiguous-reversed-operator',
15481543
'-Wno-defaulted-function-deleted',
15491544
'-Wno-deprecated-anon-enum-enum-conversion',
@@ -2083,11 +2078,13 @@ def print_compiler(self):
20832078

20842079
c_warnings += [
20852080
'-Wno-parentheses',
2081+
# For nvcc to accept the above
20862082
'-Wno-unknown-warning-option',
20872083
]
20882084

20892085
cxx_warnings += [
20902086
'-Wimport-preprocessor-directive-pedantic',
2087+
# Issue a warning if certain overload is hidden due to inheritance
20912088
'-Woverloaded-virtual',
20922089
'-Wno-ambiguous-reversed-operator',
20932090
'-Wno-defaulted-function-deleted',

0 commit comments

Comments
 (0)