shithub: libvpx

Download patch

ref: 06abc1ecd93ebdd0d6c0e900574f2e34ed4d135d
parent: 3a57ce4478e85b534ecb369a599e41b7edb4d423
author: James Zern <jzern@google.com>
date: Wed Apr 6 20:07:45 EDT 2016

configure: test for -Wshorten-64-to-32 in non hbd builds

provides msvc-like warnings for implicit conversions from 64-bit to
32-bit types

--enable-vp9-highbitdepth still requires some work

this also skips CXXFLAGS for now as some work would be needed to cleanup
third_party/*.cc or split it from test/*.cc where it comes to flags.

Change-Id: Ic9a095b73286eba5ed39bfc27ff69593748cbbf4

--- a/configure
+++ b/configure
@@ -586,6 +586,11 @@
         if enabled mips || [ -z "${INLINE}" ]; then
           enabled extra_warnings || check_add_cflags -Wno-unused-function
         fi
+        if ! enabled vp9_highbitdepth; then
+          # Avoid this warning for third_party C++ sources. Some reorganization
+          # would be needed to apply this only to test/*.cc.
+          check_cflags -Wshorten-64-to-32 && add_cflags_only -Wshorten-64-to-32
+        fi
     fi
 
     if enabled icc; then