Skip to content
Snippets Groups Projects
Commit 8b3929d9 authored by Benjamin Kramer's avatar Benjamin Kramer
Browse files

Silence compiler warnings by casting object pointers to function pointers via intptr_t.

This is ugly but ISO C++ doesn't allow direct casts.

llvm-svn: 137812
parent ae55cf2f
No related branches found
No related tags found
No related merge requests found
...@@ -56,7 +56,8 @@ ClangCheckerRegistry::ClangCheckerRegistry(ArrayRef<std::string> plugins) { ...@@ -56,7 +56,8 @@ ClangCheckerRegistry::ClangCheckerRegistry(ArrayRef<std::string> plugins) {
// Register its checkers. // Register its checkers.
RegisterCheckersFn registerPluginCheckers = RegisterCheckersFn registerPluginCheckers =
(RegisterCheckersFn) lib.getAddressOfSymbol("clang_registerCheckers"); (RegisterCheckersFn) (intptr_t) lib.getAddressOfSymbol(
"clang_registerCheckers");
if (registerPluginCheckers) if (registerPluginCheckers)
registerPluginCheckers(*this); registerPluginCheckers(*this);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment