summaryrefslogtreecommitdiff
path: root/gfx/cairo
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2021-11-19 01:15:46 -0500
committerMoonchild <moonchild@palemoon.org>2022-04-04 22:22:24 +0200
commit4c0d99d173b9d7b7d30fece9cfb117f40ab27199 (patch)
treeb2fd87f68833e3112437bbf6d1b5b9266f4bd65a /gfx/cairo
parent8399d850362b3ed2ba6cb77de72f09874e46f080 (diff)
downloaduxp-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')
-rw-r--r--gfx/cairo/cairo/src/moz.build20
-rw-r--r--gfx/cairo/libpixman/src/moz.build11
2 files changed, 29 insertions, 2 deletions
diff --git a/gfx/cairo/cairo/src/moz.build b/gfx/cairo/cairo/src/moz.build
index 6c81ce79a7..6d6f7c9d55 100644
--- a/gfx/cairo/cairo/src/moz.build
+++ b/gfx/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/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',