mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-21 07:47:32 +09:00
re-introduce old nss im too tired for this
This commit is contained in:
parent
3c46be320d
commit
3a838106b9
2871 changed files with 1374431 additions and 1762417 deletions
|
|
@ -43,35 +43,15 @@ def main():
|
|||
|
||||
def set_warning(warning, contra=''):
|
||||
if warning_supported(warning):
|
||||
print(('-W%s%s' % (contra, warning)))
|
||||
print('-W%s%s' % (contra, warning))
|
||||
|
||||
if cc_is_clang:
|
||||
# clang is unable to handle glib's expansion of strcmp and similar for
|
||||
# optimized builds, so disable the resulting errors.
|
||||
# See https://llvm.org/bugs/show_bug.cgi?id=20144
|
||||
for w in ['array-bounds',
|
||||
'unevaluated-expression',
|
||||
'parentheses-equality',
|
||||
'tautological-type-limit-compare',
|
||||
'sign-compare',
|
||||
'comma',
|
||||
'implicit-fallthrough'
|
||||
]:
|
||||
for w in ['array-bounds', 'unevaluated-expression',
|
||||
'parentheses-equality']:
|
||||
set_warning(w, 'no-')
|
||||
for w in ['tautological-constant-in-range-compare',
|
||||
'bitfield-enum-conversion',
|
||||
'empty-body',
|
||||
'format-type-confusion',
|
||||
'ignored-qualifiers',
|
||||
'pointer-arith',
|
||||
'type-limits',
|
||||
'unreachable-code',
|
||||
'unreachable-code-return',
|
||||
'duplicated-cond',
|
||||
'logical-op',
|
||||
'implicit-function-declaration'
|
||||
]:
|
||||
set_warning(w,'')
|
||||
print('-Qunused-arguments')
|
||||
|
||||
set_warning('shadow')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue