diff options
author | Moonchild <moonchild@palemoon.org> | 2021-11-19 01:15:46 -0500 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2022-04-04 22:22:24 +0200 |
commit | 4c0d99d173b9d7b7d30fece9cfb117f40ab27199 (patch) | |
tree | b2fd87f68833e3112437bbf6d1b5b9266f4bd65a /gfx/cairo/libpixman | |
parent | 8399d850362b3ed2ba6cb77de72f09874e46f080 (diff) | |
download | uxp-4c0d99d173b9d7b7d30fece9cfb117f40ab27199.tar.gz |
Issue #457 - Silence warnings in libcairo and libpixman.
We know these issues exist due to it being old 3rd party code.
Diffstat (limited to 'gfx/cairo/libpixman')
-rw-r--r-- | gfx/cairo/libpixman/src/moz.build | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gfx/cairo/libpixman/src/moz.build b/gfx/cairo/libpixman/src/moz.build index 6bfa22dc0a..7c3e900899 100644 --- a/gfx/cairo/libpixman/src/moz.build +++ b/gfx/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', |