diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2011-08-17 04:22:25 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2011-08-17 04:22:25 +0000 |
commit | 6875325b6576ad6fa4fc457f251aaeccb8b3c724 (patch) | |
tree | b61ffcfa8048a278fc793c1f2d7389ba0df84ea9 /lib/StaticAnalyzer/Frontend/CheckerRegistration.cpp | |
parent | 26fb4cbaef01a98b78eb24b1ec72946a87e70595 (diff) |
Silence compiler warnings by casting object pointers to function pointers via intptr_t.
This is ugly but ISO C++ doesn't allow direct casts.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@137812 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/StaticAnalyzer/Frontend/CheckerRegistration.cpp')
-rw-r--r-- | lib/StaticAnalyzer/Frontend/CheckerRegistration.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/StaticAnalyzer/Frontend/CheckerRegistration.cpp b/lib/StaticAnalyzer/Frontend/CheckerRegistration.cpp index 922cd844bb..4dcc11a709 100644 --- a/lib/StaticAnalyzer/Frontend/CheckerRegistration.cpp +++ b/lib/StaticAnalyzer/Frontend/CheckerRegistration.cpp @@ -56,7 +56,8 @@ ClangCheckerRegistry::ClangCheckerRegistry(ArrayRef<std::string> plugins) { // Register its checkers. RegisterCheckersFn registerPluginCheckers = - (RegisterCheckersFn) lib.getAddressOfSymbol("clang_registerCheckers"); + (RegisterCheckersFn) (intptr_t) lib.getAddressOfSymbol( + "clang_registerCheckers"); if (registerPluginCheckers) registerPluginCheckers(*this); } |