Commit a900ff69 authored by Henrik Gramner's avatar Henrik Gramner

build: Silence some useless MSVC warnings

parent 0f25db1a
Pipeline #3717 passed with stages
in 5 minutes and 9 seconds
......@@ -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'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment