shithub: libvpx

Download patch

ref: 060491ca21225166aa535bc1479eb0a33fb2ceb6
parent: 088f2d7992396de22fff27b5ee6cc22a2abc4404
author: Johann <johannkoenig@google.com>
date: Mon Feb 4 13:18:11 EST 2019

enforce some c89 restrictions

Block "for (int i;;)" style declarations.

Use --std=gnu89 to avoid enforcing c89-style comments.

Change-Id: Ia7d1405eac647d04e92513c047773695e8d7dc6e

--- a/configure
+++ b/configure
@@ -625,6 +625,9 @@
         if enabled mips || [ -z "${INLINE}" ]; then
           enabled extra_warnings || check_add_cflags -Wno-unused-function
         fi
+        # Enforce c89 for c files. Don't be too strict about it though. Allow
+        # gnu extensions like "//" for comments.
+        check_cflags -std=gnu89 && add_cflags_only -std=gnu89
         # 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