Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/videolan/dav1d.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenrik Gramner <gramner@twoorioles.com>2018-12-20 23:47:05 +0300
committerHenrik Gramner <gramner@twoorioles.com>2018-12-20 23:52:04 +0300
commita900ff69a52186e3e2ddb9b63ac60280c19c8fb2 (patch)
treebaea08842f06ad52cd34e8664995cb5a8cdb283d /meson.build
parent0f25db1ab9fad46e134a037b85342a0d886d2ec7 (diff)
build: Silence some useless MSVC warnings
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build6
1 files changed, 6 insertions, 0 deletions
diff --git a/meson.build b/meson.build
index aa55236..7512023 100644
--- a/meson.build
+++ b/meson.build
@@ -170,6 +170,12 @@ optional_arguments = [
'-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'