[all-commits] [llvm/llvm-project] e7e749: [TSan] Fix asan_mac.cpp function pointer cast warn...
Dan Blackwell via All-commits
all-commits at lists.llvm.org
Fri Aug 1 08:33:44 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: e7e74945a6c77349963e03ba42989faad715b6bc
https://github.com/llvm/llvm-project/commit/e7e74945a6c77349963e03ba42989faad715b6bc
Author: Dan Blackwell <dan_blackwell at apple.com>
Date: 2025-08-01 (Fri, 01 Aug 2025)
Changed paths:
M compiler-rt/lib/asan/asan_mac.cpp
Log Message:
-----------
[TSan] Fix asan_mac.cpp function pointer cast warnings (#151517)
Fixes these compiler warnings:
```
.../llvm-project/compiler-rt/lib/asan/asan_mac.cpp:252:4: warning: cast from 'dispatch_function_t' (aka 'void (*)(void *)') to 'void (*)(void *, size_t)' (aka 'void (*)(void *, unsigned long)') converts to incompatible function type [-Wcast-function-type-mismatch]
252 | ((void (*)(void *, size_t))asan_ctxt->func)(asan_ctxt->block, iteration);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.../llvm-project/compiler-rt/lib/asan/asan_mac.cpp:259:32: warning: cast from 'void (*)(void *, size_t)' (aka 'void (*)(void *, unsigned long)') to 'dispatch_function_t' (aka 'void (*)(void *)') converts to incompatible function type [-Wcast-function-type-mismatch]
259 | alloc_asan_context(ctxt, (dispatch_function_t)work, &stack);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
```
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list