From a0390f1fd725e37a201cc47ba47204182ebc1ccf Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Sun, 28 Jun 2015 22:21:57 -0400 Subject: [PATCH] Added inline to StringNarrow to squash unused function warning --- misc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc.h b/misc.h index 2b326dd6..1998d0ba 100644 --- a/misc.h +++ b/misc.h @@ -545,7 +545,7 @@ inline void SecureWipeArray(T *buf, size_t n) } // this function uses wcstombs(), which assumes that setlocale() has been called -static std::string StringNarrow(const wchar_t *str, bool throwOnError = true) +static inline std::string StringNarrow(const wchar_t *str, bool throwOnError = true) { #ifdef _MSC_VER #pragma warning(push)