[PATCH] D35243: [LibFuzzer] Fix `-Wpedantic` warning reported by Eric Christopher.
Dan Liew via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 11 11:28:24 PDT 2017
This revision was automatically updated to reflect the committed changes.
Closed by commit rL307686: [LibFuzzer] Fix `-Wpedantic` warning reported by Eric Christopher. (authored by delcypher).
Changed prior to commit:
https://reviews.llvm.org/D35243?vs=105994&id=106077#toc
Repository:
rL LLVM
https://reviews.llvm.org/D35243
Files:
llvm/trunk/lib/Fuzzer/FuzzerExtFunctionsWeak.cpp
Index: llvm/trunk/lib/Fuzzer/FuzzerExtFunctionsWeak.cpp
===================================================================
--- llvm/trunk/lib/Fuzzer/FuzzerExtFunctionsWeak.cpp
+++ llvm/trunk/lib/Fuzzer/FuzzerExtFunctionsWeak.cpp
@@ -41,7 +41,8 @@
ExternalFunctions::ExternalFunctions() {
#define EXT_FUNC(NAME, RETURN_TYPE, FUNC_SIG, WARN) \
this->NAME = ::NAME; \
- CheckFnPtr((void *)::NAME, #NAME, WARN);
+ CheckFnPtr(reinterpret_cast<void *>(reinterpret_cast<uintptr_t>(::NAME)), \
+ #NAME, WARN);
#include "FuzzerExtFunctions.def"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D35243.106077.patch
Type: text/x-patch
Size: 647 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170711/f19e25f6/attachment.bin>
More information about the llvm-commits
mailing list