[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
Mon May 9 13:41:56 PDT 2016
jroelofs added a subscriber: jroelofs.
================
Comment at: lib/stats/stats_client.cc:33
@@ -32,3 +32,3 @@
-void *LookupSymbolFromMain(const char *name) {
+void (*LookupSymbolFromMain(const char *name))() {
#ifdef _WIN32
----------------
IIUC, this should be written as:
```
void (*LookupSymbolFromMain())(const char *name) {
```
http://reviews.llvm.org/D20079
More information about the llvm-commits
mailing list