Fix a -Wunused-result warning

This commit is contained in:
Tillmann Karras 2015-02-24 01:38:14 +01:00
parent 84f8547556
commit 7056f6308a
1 changed files with 2 additions and 1 deletions

View File

@ -30,7 +30,8 @@ const char* GetLastErrorMsg()
static __thread char err_str[buff_size] = {};
// Thread safe (XSI-compliant)
strerror_r(errno, err_str, buff_size);
if (strerror_r(errno, err_str, buff_size))
return nullptr;
#endif
return err_str;