[FFmpeg-devel] [PATCH] configure: disable -Wunused-const-variable

James Almer jamrial at gmail.com
Mon Jan 18 20:29:35 CET 2016


The option became too aggressive with GCC 6, generating nearly 500
warnings from static const variables defined in assorted headers

Signed-off-by: James Almer <jamrial at gmail.com>
---
Compare http://fate.ffmpeg.org/report.cgi?time=20150921041049&slot=x86_64-archlinux-gcc-experimental
with http://fate.ffmpeg.org/report.cgi?time=20150923012551&slot=x86_64-archlinux-gcc-experimental

 configure | 1 +
 1 file changed, 1 insertion(+)

diff --git a/configure b/configure
index cdf07ae..4dcb27b 100755
--- a/configure
+++ b/configure
@@ -5780,6 +5780,7 @@ check_disable_warning -Wno-parentheses
 check_disable_warning -Wno-switch
 check_disable_warning -Wno-format-zero-length
 check_disable_warning -Wno-pointer-sign
+check_disable_warning -Wno-unused-const-variable
 
 # add some linker flags
 check_ldflags -Wl,--warn-common
-- 
2.7.0



More information about the ffmpeg-devel mailing list