mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 14:19:46 -06:00
Fix a -Wunused-result warning
This commit is contained in:
@ -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