mirror of
https://github.com/chromium/crashpad.git
synced 2024-12-26 06:31:50 +08:00
mac: Fix build with deployment target ≥ 11
This fixes the following warning during compilation: > process_reader_mac_test.cc:670:7: warning: address of function > '_dyld_shared_cache_contains_path' will always evaluate to 'true' > [-Wpointer-bool-conversion] while still retaining compatibility with pre-macOS 11 runtimes when built with a suitable deployment target. Bug: 461 Change-Id: I61a360e8e02ceb7209c887819a4916a68384b89d Reviewed-on: https://chromium-review.googlesource.com/c/crashpad/crashpad/+/4873433 Reviewed-by: Joshua Peraza <jperaza@chromium.org> Commit-Queue: Mark Mentovai <mark@chromium.org>
This commit is contained in:
parent
d25c332228
commit
8da335ffad
@ -666,7 +666,7 @@ void VerifyImageExistenceAndTimestamp(const char* path, time_t timestamp) {
|
||||
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wunguarded-availability"
|
||||
if (_dyld_shared_cache_contains_path &&
|
||||
if (&_dyld_shared_cache_contains_path &&
|
||||
_dyld_shared_cache_contains_path(path)) {
|
||||
#pragma clang diagnostic pop
|
||||
// The timestamp will either match the timestamp of the dyld_shared_cache
|
||||
|
Loading…
x
Reference in New Issue
Block a user