Bug 1394002 Suppress warnings in third party cairo and libpixman code r?jrmuizel draft
authorTom Ritter <tom@mozilla.com>
Thu, 24 Aug 2017 12:26:10 -0500
changeset 653351 6d561a6c3569544e93cfd029b47559d8b3737381
parent 653338 36e5adf812b33f7eb87e32a3643e1428f03271cf
child 728318 70ba1947bbbec302717792bf7fd843f9c5d4c087
push id76305
push userbmo:tom@mozilla.com
push dateFri, 25 Aug 2017 21:19:44 +0000
reviewersjrmuizel
bugs1394002
milestone57.0a1
Bug 1394002 Suppress warnings in third party cairo and libpixman code r?jrmuizel MozReview-Commit-ID: Any1Vr7teiy
gfx/cairo/cairo/src/moz.build
gfx/cairo/libpixman/src/moz.build
old mode 100644
new mode 100755
--- a/gfx/cairo/cairo/src/moz.build
+++ b/gfx/cairo/cairo/src/moz.build
@@ -212,21 +212,27 @@ if CONFIG['MOZ_TREE_FREETYPE']:
     DEFINES['HAVE_FT_LIBRARY_SETLCDFILTER'] = True
     DEFINES['FT_LCD_FILTER_H'] = '%s/modules/freetype2/include/freetype/ftlcdfil.h' % TOPSRCDIR
 
 # Suppress warnings in third-party code.
 if CONFIG['GNU_CC'] or CONFIG['CLANG_CL']:
     CFLAGS += [
         '-Wno-enum-compare',
         '-Wno-int-to-pointer-cast',
+        '-Wno-int-conversion',
+        '-Wno-incompatible-pointer-types',
         '-Wno-sign-compare',
         '-Wno-type-limits',
         '-Wno-missing-field-initializers',
         '-Wno-conversion',
+        '-Wno-narrowing',
+        '-Wno-switch',
         '-Wno-unused',
+        '-Wno-unused-variable',
+        '-Wno-unused-but-set-variable'
     ]
 
 if CONFIG['CLANG_CXX'] or CONFIG['CLANG_CL']:
     CFLAGS += [
         '-Wno-absolute-value',
         '-Wno-deprecated-register',
         '-Wno-incompatible-pointer-types',
         '-Wno-macro-redefined',
--- a/gfx/cairo/libpixman/src/moz.build
+++ b/gfx/cairo/libpixman/src/moz.build
@@ -137,16 +137,17 @@ if use_arm_neon_gcc:
     SOURCES['pixman-arm-neon.c'].flags += CONFIG['NEON_FLAGS']
 
 # Suppress warnings in third-party code.
 if CONFIG['GNU_CC'] or CONFIG['CLANG_CL']:
     CFLAGS += [
         '-Wno-address',
         '-Wno-missing-field-initializers',
         '-Wno-sign-compare',
+        '-Wno-incompatible-pointer-types',
         '-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',
     ]