This repository was archived by the owner on Jul 9, 2025. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -58,16 +58,23 @@ DEFINES['MOZ_NO_MOZALLOC'] = True
5858USE_LIBS += ['psshparser' ]
5959
6060# Suppress warnings in third-party code.
61- if CONFIG ['CC_TYPE' ] in ('clang' , 'gcc' ):
61+ if CONFIG ['CC_TYPE' ] in ('clang' , 'clang-cl' , ' gcc' ):
6262 CFLAGS += [
6363 '-Wno-missing-braces' ,
6464 '-Wno-pointer-to-int-cast' ,
6565 '-Wno-sign-compare' ,
66+ ]
67+ elif CONFIG ['CC_TYPE' ] == 'msvc' :
68+ CFLAGS += [
69+ '-wd4090' , # '=' : different 'const' qualifiers
70+ ]
71+
72+ if CONFIG ['CC_TYPE' ] in ('clang' , 'gcc' ):
73+ CFLAGS += [
6674 '-include' , 'stdio.h' , # for sprintf() prototype
6775 '-include' , 'unistd.h' , # for getpid() prototype
6876 ]
6977elif CONFIG ['CC_TYPE' ] in ('msvc' , 'clang-cl' ):
7078 CFLAGS += [
7179 '-FI' , 'stdio.h' , # for sprintf() prototype
72- '-wd4090' , # '=' : different 'const' qualifiers
7380 ]
You can’t perform that action at this time.
0 commit comments