diff options
author | Diego Biurrun <diego@biurrun.de> | 2016-03-09 15:39:29 +0100 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2016-12-03 08:00:33 +0100 |
commit | 2575b1917b2703fae41a4b4901ad85c888374dfd (patch) | |
tree | b7a8b0ba903f1fda8a19b946df2c9dd2054c9060 /configure | |
parent | 984e50e74ba71301720652e56232161a994bd0b5 (diff) | |
download | ffmpeg-2575b1917b2703fae41a4b4901ad85c888374dfd.tar.gz |
build: Add separate flags for checkheaders targets
This allows filtering out some warning noise.
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -4851,6 +4851,14 @@ check_disable_warning -Wno-switch check_disable_warning -Wno-format-zero-length check_disable_warning -Wno-pointer-sign +check_disable_warning_headers(){ + warning_flag=-W${1#-Wno-} + test_cflags $warning_flag && append cflags_headers $1 +} + +check_disable_warning_headers -Wno-deprecated-declarations +check_disable_warning_headers -Wno-unused-variable + # add some linker flags check_ldflags -Wl,--warn-common check_ldflags -Wl,-rpath-link=libswscale:libavfilter:libavdevice:libavformat:libavcodec:libavutil:libavresample @@ -5315,6 +5323,7 @@ TARGET_EXEC=$target_exec $target_exec_args TARGET_PATH=$target_path TARGET_SAMPLES=${target_samples:-\$(SAMPLES)} CFLAGS-avplay=$sdl_cflags +CFLAGS_HEADERS=$cflags_headers ZLIB=$($ldflags_filter -lz) LIB_INSTALL_EXTRA_CMD=$LIB_INSTALL_EXTRA_CMD EXTRALIBS=$extralibs |