Bug 1388978 - Suppress some more clang warnings in media/ffvpx. r?rillian draft
authorChris Peterson <cpeterson@mozilla.com>
Thu, 10 Aug 2017 09:55:42 -0700
changeset 644191 0f6b2d5416fd978073f7a6a102060c9e6a8c7989
parent 643788 bbd3d59272b686b09314d626cc5a2b5e51821937
child 725527 1bfa30aeff5756c1d9adc3d53a48238a966f73eb
push id73347
push usercpeterson@mozilla.com
push dateThu, 10 Aug 2017 16:56:02 +0000
reviewersrillian
bugs1388978
milestone57.0a1
Bug 1388978 - Suppress some more clang warnings in media/ffvpx. r?rillian Since I am already poking around in ffvpxcommon.mozbuild's CFLAGS, also suppress these clang -Wvisibility and -Wstring-conversion warnings: media/ffvpx/libavutil/dummy_funcs.c:83:34 [-Wvisibility] declaration of 'struct AVBufferRef' will not be visible outside of this function media/ffvpx/libavutil/dummy_funcs.c:83:67 [-Wvisibility] declaration of 'struct AVFrame' will not be visible outside of this function media/ffvpx/libavutil/utils.c:119:26 [-Wstring-conversion] implicit conversion turns string literal into bool: 'char [19]' to '_Bool' And remove -Wno-logical-op-parentheses because clang does not currently report any -Wlogical-op-parentheses warnings for ffvpx. MozReview-Commit-ID: 1kEwEHeD1PC
media/ffvpx/ffvpxcommon.mozbuild
--- a/media/ffvpx/ffvpxcommon.mozbuild
+++ b/media/ffvpx/ffvpxcommon.mozbuild
@@ -45,17 +45,18 @@ if CONFIG['GNU_CC']:
         '-Wno-type-limits',
         '-Wno-unused-function',
         # XXX This does not seem to have any effect on some versions of GCC.
         '-Wno-deprecated-declarations',
     ]
     if CONFIG['CLANG_CXX']:
         CFLAGS += [
             '-Wno-incompatible-pointer-types-discards-qualifiers',
-            '-Wno-logical-op-parentheses',
+            '-Wno-string-conversion',
+            '-Wno-visibility',
         ]
     else:
         CFLAGS += [
             '-Wno-discarded-qualifiers',
             '-Wno-maybe-uninitialized',
         ]
     # Force visibility of cpu and av_log symbols.
     CFLAGS += ['-include', 'libavutil_visibility.h']