build: disable Windows warnings for insecure funtions
authorNick Connolly <nick.connolly@mayadata.io>
Sun, 29 Nov 2020 16:00:24 +0000 (16:00 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 7 Dec 2020 20:34:04 +0000 (21:34 +0100)
commitecc69f98c7e3dd5ecab94047edb65ccff0dce5b9
treeb8f364931777c5cf64a1bed7f2ffc5a7d7d733ad
parent498ec3c6da6da0a8c9e6ad7ddd087e10faa77eb0
build: disable Windows warnings for insecure funtions

Microsoft CRT defines Windows-specific secure alternatives to
standard library functions and triggers warnings when "insecure"
functions are used [1]. However, calling code already has all
necessary checks around those functions, so these warnings are not
useful for DPDK. MinGW provides its own CRT without this issue.

[1]:
https://docs.microsoft.com/en-us/cpp/c-runtime-library/security-features-in-the-crt?view=msvc-160

Disable this by defining -D_CRT_SECURE_NO_WARNINGS.

Signed-off-by: Nick Connolly <nick.connolly@mayadata.io>
Acked-by: Dmitry Kozlyuk <dmitry.kozliuk@gmail.com>
Acked-by: Pallavi Kadam <pallavi.kadam@intel.com>
config/meson.build