[PATCH] D20079: Avoid gcc warning about casting ptr-to-object to ptr-to-fun
Jonathan Roelofs via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 22 09:03:00 PDT 2016
jroelofs added inline comments.
================
Comment at: lib/stats/stats_client.cc:33
@@ -32,3 +32,3 @@
-void *LookupSymbolFromMain(const char *name) {
+void (*LookupSymbolFromMain(const char *name))() {
#ifdef _WIN32
----------------
erm... never mind. Confusing type is confusing.
A typedef would probably help readability here.
http://reviews.llvm.org/D20079
More information about the llvm-commits
mailing list