From 7741d8254e0e15be91279a74627090f134412d0b Mon Sep 17 00:00:00 2001 From: Rechi Date: Thu, 6 Jul 2017 14:11:18 +0200 Subject: [PATCH] [utils] coverity: ignore uncaught 'fmt::FormatError' exception --- xbmc/utils/StringUtils.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xbmc/utils/StringUtils.h b/xbmc/utils/StringUtils.h index eeb63af900f41..96e6d75df2330 100644 --- a/xbmc/utils/StringUtils.h +++ b/xbmc/utils/StringUtils.h @@ -63,6 +63,7 @@ class StringUtils template static std::string Format(const std::string& fmt, Args&&... args) { + // coverity[fun_call_w_exception : FALSE] auto result = fmt::format(fmt, std::forward(args)...); if (result == fmt) result = fmt::sprintf(fmt, std::forward(args)...); @@ -72,6 +73,7 @@ class StringUtils template static std::wstring Format(const std::wstring& fmt, Args&&... args) { + // coverity[fun_call_w_exception : FALSE] auto result = fmt::format(fmt, std::forward(args)...); if (result == fmt) result = fmt::sprintf(fmt, std::forward(args)...);