From: Rafael Kitover Date: Sun, 29 Oct 2023 08:33:09 +0000 (+0000) Subject: fix: Devmode unused function warnings on new MSVC (#1342) X-Git-Tag: v4.9~26 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e51e10edee8caf88256f6fcfcbfa5a06172443c4;p=thirdparty%2Fccache.git fix: Devmode unused function warnings on new MSVC (#1342) MSVC apparently has overrides for the two definitions of operator== in unittest/test_util_string.cpp in the header, raising a warning about them being local unused functions: https://learn.microsoft.com/en-us/cpp/error-messages/compiler-warnings/compiler-warning-level-4-c4505?view=msvc-170 Disable this warning type in cmake/DevModeWarnings.cmake for MSVC. Signed-off-by: Rafael Kitover --- diff --git a/cmake/DevModeWarnings.cmake b/cmake/DevModeWarnings.cmake index 1db8135fe..c17d4e29c 100644 --- a/cmake/DevModeWarnings.cmake +++ b/cmake/DevModeWarnings.cmake @@ -121,5 +121,7 @@ elseif(MSVC) /wd4706 # Non-underscore-prefixed POSIX functions: /wd4996 + # Dead local functions overridden by headers: + /wd4505 ) endif()