mirror of
https://github.com/chromium/crashpad.git
synced 2025-03-09 22:26:06 +00:00
Standard C++ doesn't allow implicit conversion between function pointers and void*. MSVC does allow that, so clang-cl also allows it but emits a -Wmicrosoft-cast warning. We want to enable this warning to make the compiler behave more similar on different platforms, so add an explicit cast to void*. (GetProcAddress() returns FARPROC, a function pointer type.) Upstreamed from: https://chromium-review.googlesource.com/c/chromium/src/+/953743 Change-Id: I3ed4e23395e1e01b31b7cf945ddb6f93e4e69d45 Reviewed-on: https://chromium-review.googlesource.com/959545 Commit-Queue: Joshua Peraza <jperaza@chromium.org> Reviewed-by: Mark Mentovai <mark@chromium.org>