@@ -1468,15 +1468,7 @@ def __init__(self, tc, build):
1468
1468
'-Wall' ,
1469
1469
'-Wextra' ,
1470
1470
]
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 = []
1480
1472
1481
1473
self .c_defines = ['${hide:CPP_FAKEID}' ]
1482
1474
if self .target .is_android :
@@ -1537,13 +1529,16 @@ def __init__(self, tc, build):
1537
1529
self .sfdl_flags .append ('-Qunused-arguments' )
1538
1530
1539
1531
self .c_warnings += [
1532
+ '-Wno-parentheses' ,
1540
1533
'-Wno-implicit-const-int-float-conversion' ,
1541
- # For nvcc to accept the above.
1534
+ # For nvcc to accept the above
1542
1535
'-Wno-unknown-warning-option' ,
1543
1536
]
1544
1537
1545
1538
self .cxx_warnings += [
1546
1539
'-Wimport-preprocessor-directive-pedantic' ,
1540
+ # Issue a warning if certain overload is hidden due to inheritance
1541
+ '-Woverloaded-virtual' ,
1547
1542
'-Wno-ambiguous-reversed-operator' ,
1548
1543
'-Wno-defaulted-function-deleted' ,
1549
1544
'-Wno-deprecated-anon-enum-enum-conversion' ,
@@ -2083,11 +2078,13 @@ def print_compiler(self):
2083
2078
2084
2079
c_warnings += [
2085
2080
'-Wno-parentheses' ,
2081
+ # For nvcc to accept the above
2086
2082
'-Wno-unknown-warning-option' ,
2087
2083
]
2088
2084
2089
2085
cxx_warnings += [
2090
2086
'-Wimport-preprocessor-directive-pedantic' ,
2087
+ # Issue a warning if certain overload is hidden due to inheritance
2091
2088
'-Woverloaded-virtual' ,
2092
2089
'-Wno-ambiguous-reversed-operator' ,
2093
2090
'-Wno-defaulted-function-deleted' ,
0 commit comments