shithub: dav1d

Download patch

ref: a900ff69a52186e3e2ddb9b63ac60280c19c8fb2
parent: 0f25db1ab9fad46e134a037b85342a0d886d2ec7
author: Henrik Gramner <gramner@twoorioles.com>
date: Thu Dec 20 16:47:05 EST 2018

build: Silence some useless MSVC warnings

--- a/meson.build
+++ b/meson.build
@@ -170,6 +170,12 @@
   '-Wno-unused-parameter',
   '-Werror=missing-prototypes',
 ]
+if cc.get_id() == 'msvc'
+    optional_arguments += [
+      '-wd4028', # parameter different from declaration
+      '-wd4996'  # use of POSIX functions
+    ]
+endif
 
 if (get_option('buildtype') != 'debug' and get_option('buildtype') != 'plain')
     optional_arguments += '-fomit-frame-pointer'