Fix compile warnings
Co-authored-by: Thulinma <jaron@vietors.com>
This commit is contained in:
parent
055fb18270
commit
0a13ec1119
14 changed files with 52 additions and 54 deletions
|
@ -743,7 +743,7 @@ std::string Util::getMyPath(){
|
|||
#ifdef __APPLE__
|
||||
memset(mypath, 0, 500);
|
||||
unsigned int refSize = 500;
|
||||
int ret = _NSGetExecutablePath(mypath, &refSize);
|
||||
_NSGetExecutablePath(mypath, &refSize);
|
||||
#else
|
||||
int ret = readlink("/proc/self/exe", mypath, 500);
|
||||
if (ret != -1){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue