mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-20 11:35:54 +00:00
Fix a -Wunused-result warning
This commit is contained in:
parent
84f8547556
commit
7056f6308a
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue