Fix a -Wunused-result warning
This commit is contained in:
parent
84f8547556
commit
7056f6308a
|
@ -30,7 +30,8 @@ const char* GetLastErrorMsg()
|
||||||
static __thread char err_str[buff_size] = {};
|
static __thread char err_str[buff_size] = {};
|
||||||
|
|
||||||
// Thread safe (XSI-compliant)
|
// Thread safe (XSI-compliant)
|
||||||
strerror_r(errno, err_str, buff_size);
|
if (strerror_r(errno, err_str, buff_size))
|
||||||
|
return nullptr;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
return err_str;
|
return err_str;
|
||||||
|
|
Loading…
Reference in New Issue