diff options
author | Henrik Gramner <gramner@twoorioles.com> | 2018-12-20 23:47:05 +0300 |
---|---|---|
committer | Henrik Gramner <gramner@twoorioles.com> | 2018-12-20 23:52:04 +0300 |
commit | a900ff69a52186e3e2ddb9b63ac60280c19c8fb2 (patch) | |
tree | baea08842f06ad52cd34e8664995cb5a8cdb283d /meson.build | |
parent | 0f25db1ab9fad46e134a037b85342a0d886d2ec7 (diff) |
build: Silence some useless MSVC warnings
Diffstat (limited to 'meson.build')
-rw-r--r-- | meson.build | 6 |
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' |