Added inline to StringNarrow to squash unused function warning

pull/1/merge
Jeffrey Walton 2015-06-28 22:21:57 -04:00
parent 9425e16437
commit a0390f1fd7
1 changed files with 1 additions and 1 deletions

2
misc.h
View File

@ -545,7 +545,7 @@ inline void SecureWipeArray(T *buf, size_t n)
} }
// this function uses wcstombs(), which assumes that setlocale() has been called // 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 #ifdef _MSC_VER
#pragma warning(push) #pragma warning(push)