From b68c5dee072c3c4b91d8620e84671d96408a5112 Mon Sep 17 00:00:00 2001 From: orbitcowboy Date: Sat, 10 Jul 2021 09:27:22 +0200 Subject: [PATCH] windows.cfg: Added support for _mbscpy(). --- cfg/windows.cfg | 14 ++++++++++++++ test/cfg/windows.cpp | 8 +++++++- 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/cfg/windows.cfg b/cfg/windows.cfg index 61eb76e36..cb7b7a404 100644 --- a/cfg/windows.cfg +++ b/cfg/windows.cfg @@ -2548,6 +2548,20 @@ HFONT CreateFont( + + + + + false + + + + + + + + + diff --git a/test/cfg/windows.cpp b/test/cfg/windows.cpp index 33a3c8bb1..9b78c8286 100644 --- a/test/cfg/windows.cpp +++ b/test/cfg/windows.cpp @@ -12,6 +12,13 @@ #include #include +unsigned char * overlappingWriteFunction__mbscpy(unsigned char *src, unsigned char *dest) +{ + // No warning shall be shown: + (void)_mbscpy(dest, src); + // cppcheck-suppress overlappingWriteFunction + return _mbscpy(src, src); +} SYSTEM_INFO uninitvar_GetSystemInfo(char * envstr) { @@ -21,7 +28,6 @@ SYSTEM_INFO uninitvar_GetSystemInfo(char * envstr) return SystemInfo; } - void uninitvar__putenv(char * envstr) { // No warning is expected