Clear unused variable warning with GCC
parent
6d5316812f
commit
7428fa82ab
2
test.cpp
2
test.cpp
|
|
@ -512,7 +512,7 @@ void SetArgvPathHint(const char* argv0, std::string& pathHint)
|
||||||
// Is it possible for realpath to fail?
|
// Is it possible for realpath to fail?
|
||||||
struct stat buf; int x;
|
struct stat buf; int x;
|
||||||
x = lstat(pathHint.c_str(), &buf);
|
x = lstat(pathHint.c_str(), &buf);
|
||||||
if (S_ISLNK(buf.st_mode))
|
if (x != 0 || S_ISLNK(buf.st_mode))
|
||||||
pathHint.clear();
|
pathHint.clear();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue