Fix a -Wunused-result warning
This commit is contained in:
1 parent
84f8547556
commit
7056f6308a
1 file changed
+2
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user