diff options
| author | Marco Craveiro <mcraveiro@users.noreply.github.com> | 2019-02-09 02:06:08 +0000 |
|---|---|---|
| committer | Robert Schumacher <roschuma@microsoft.com> | 2019-02-08 18:06:08 -0800 |
| commit | d82f37b4bfc1422d4601fbb63cbd553c925f7014 (patch) | |
| tree | bcb4539b5f90ec2d0fdaa2c8f5ef76eeda06f191 /toolsrc/src | |
| parent | 4cbd210154db56b1f1c99fc563abceb767b3c8a9 (diff) | |
| download | vcpkg-d82f37b4bfc1422d4601fbb63cbd553c925f7014.tar.gz vcpkg-d82f37b4bfc1422d4601fbb63cbd553c925f7014.zip | |
[vcpkg] Fix warning on Apple (#5333)
Return type of _NSGetExecutablePath is int rather than bool [1],
causing a warning on Apple.
[1] https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man3/dyld.3.html
Diffstat (limited to 'toolsrc/src')
| -rw-r--r-- | toolsrc/src/vcpkg/base/system.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/toolsrc/src/vcpkg/base/system.cpp b/toolsrc/src/vcpkg/base/system.cpp index b25412f7a..90b9c34b3 100644 --- a/toolsrc/src/vcpkg/base/system.cpp +++ b/toolsrc/src/vcpkg/base/system.cpp @@ -30,7 +30,7 @@ namespace vcpkg::System static constexpr const uint32_t buff_size = 1024 * 32; uint32_t size = buff_size; char buf[buff_size] = {}; - bool result = _NSGetExecutablePath(buf, &size); + int result = _NSGetExecutablePath(buf, &size); Checks::check_exit(VCPKG_LINE_INFO, result != -1, "Could not determine current executable path."); std::unique_ptr<char> canonicalPath(realpath(buf, NULL)); Checks::check_exit(VCPKG_LINE_INFO, result != -1, "Could not determine current executable path."); |
