diff options
author | Matt A. Tobin <email@mattatobin.com> | 2021-11-19 01:15:46 -0500 |
---|---|---|
committer | Matt A. Tobin <email@mattatobin.com> | 2021-11-19 01:15:46 -0500 |
commit | a9d8ada72f0384ec39c1aa3950fe415380c1c950 (patch) | |
tree | 1c941ae97cad7af024c8bbc57180bcefc973953e /libs | |
parent | fd2dc662659c5879a7abe614ab092a4eba17eb7c (diff) | |
download | aura-central-a9d8ada72f0384ec39c1aa3950fe415380c1c950.tar.gz |
Issue %3037 - Part 4: Silence warnings spewed from lack of d3d9 and other such warnings in libcairo and libpixman
Diffstat (limited to 'libs')
-rw-r--r-- | libs/cairo/cairo/src/moz.build | 20 | ||||
-rw-r--r-- | libs/cairo/libpixman/src/moz.build | 11 |
2 files changed, 29 insertions, 2 deletions
diff --git a/libs/cairo/cairo/src/moz.build b/libs/cairo/cairo/src/moz.build index 6c81ce79a..6d6f7c9d5 100644 --- a/libs/cairo/cairo/src/moz.build +++ b/libs/cairo/cairo/src/moz.build @@ -215,9 +215,23 @@ if CONFIG['MOZ_TREE_FREETYPE']: # Suppress warnings in third-party code. if CONFIG['_MSC_VER']: CFLAGS += [ - '-wd4005', - '-wd4146', + '-wd4005', # 'WIN32_LEAN_AND_MEAN' : macro redefinition + '-wd4018', # '>' : signed/unsigned mismatch + '-wd4047', # different levels of indirection + '-wd4101', # unreferenced local variable + '-wd4133', # 'function' : incompatible types + '-wd4146', # unary minus operator applied to unsigned type + '-wd4311', # 'variable' : pointer truncation from 'type' to 'type' + '-wd4477', # format string '%s' requires an argument of type 'type' + '-wd4996', # The compiler encountered a deprecated declaration. ] + CXXFLAGS += [ + '-wd4005', # 'WIN32_LEAN_AND_MEAN' : macro redefinition + '-wd4018', # '>' : signed/unsigned mismatch + '-wd4146', # unary minus operator applied to unsigned type + '-wd4828', # illegal in the current source character set + '-wd4838', # requires a narrowing conversion +] if CONFIG['GNU_CC'] or CONFIG['CLANG_CL']: CFLAGS += [ '-Wno-enum-compare', @@ -228,6 +242,7 @@ if CONFIG['GNU_CC'] or CONFIG['CLANG_CL']: '-Wno-conversion', '-Wno-unused-but-set-variable', ] + if CONFIG['CLANG_CXX'] or CONFIG['CLANG_CL']: CFLAGS += [ '-Wno-incompatible-pointer-types', @@ -235,6 +250,7 @@ if CONFIG['CLANG_CXX'] or CONFIG['CLANG_CL']: '-Wno-tautological-constant-out-of-range-compare', '-Wno-error=uninitialized', ] + if CONFIG['CLANG_CL']: CFLAGS += [ '-Wno-deprecated-register', diff --git a/libs/cairo/libpixman/src/moz.build b/libs/cairo/libpixman/src/moz.build index 6bfa22dc0..7c3e90089 100644 --- a/libs/cairo/libpixman/src/moz.build +++ b/libs/cairo/libpixman/src/moz.build @@ -130,6 +130,15 @@ if use_arm_neon_gcc: SOURCES['pixman-arm-neon.c'].flags += CONFIG['NEON_FLAGS'] # Suppress warnings in third-party code. +if CONFIG['_MSC_VER']: + CFLAGS += [ + '-wd4047', # different levels of indirection + '-wd4101', # unreferenced local variable + '-wd4133', # 'function' : incompatible types + '-wd4146', # unary minus operator applied to unsigned type + '-wd4311', # 'variable' : pointer truncation from 'type' to 'type' + ] + if CONFIG['GNU_CC'] or CONFIG['CLANG_CL']: CFLAGS += [ '-Wno-address', @@ -137,12 +146,14 @@ if CONFIG['GNU_CC'] or CONFIG['CLANG_CL']: '-Wno-sign-compare', '-Wno-unused', # too many unused warnings; ignore ] + if CONFIG['CLANG_CXX'] or CONFIG['CLANG_CL']: CFLAGS += [ '-Wno-incompatible-pointer-types', '-Wno-tautological-compare', '-Wno-tautological-constant-out-of-range-compare', ] + if CONFIG['CLANG_CL']: CFLAGS += [ '-Wno-unused-variable', |