[llvm] r226214 - Fixing pedantic build warnings.

Andrew Kaylor andrew.kaylor at intel.com
Thu Jan 15 13:50:53 PST 2015


Author: akaylor
Date: Thu Jan 15 15:50:53 2015
New Revision: 226214

URL: http://llvm.org/viewvc/llvm-project?rev=226214&view=rev
Log:
Fixing pedantic build warnings.

Modified:
    llvm/trunk/lib/ExecutionEngine/IntelJITEvents/jitprofiling.c

Modified: llvm/trunk/lib/ExecutionEngine/IntelJITEvents/jitprofiling.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/ExecutionEngine/IntelJITEvents/jitprofiling.c?rev=226214&r1=226213&r2=226214&view=diff
==============================================================================
--- llvm/trunk/lib/ExecutionEngine/IntelJITEvents/jitprofiling.c (original)
+++ llvm/trunk/lib/ExecutionEngine/IntelJITEvents/jitprofiling.c Thu Jan 15 15:50:53 2015
@@ -24,6 +24,7 @@
 #else  /* ITT_PLATFORM==ITT_PLATFORM_WIN */
 #include <pthread.h>
 #include <dlfcn.h>
+#include <stdint.h>
 #endif /* ITT_PLATFORM==ITT_PLATFORM_WIN */
 #include <malloc.h>
 #include <stdlib.h>
@@ -371,7 +372,7 @@ static int loadiJIT_Funcs()
 #if ITT_PLATFORM==ITT_PLATFORM_WIN
     FUNC_NotifyEvent = (TPNotify)GetProcAddress(m_libHandle, "NotifyEvent");
 #else  /* ITT_PLATFORM==ITT_PLATFORM_WIN */
-    FUNC_NotifyEvent = (TPNotify)dlsym(m_libHandle, "NotifyEvent");
+    FUNC_NotifyEvent = (TPNotify)(intptr_t)dlsym(m_libHandle, "NotifyEvent");
 #endif /* ITT_PLATFORM==ITT_PLATFORM_WIN */
     if (!FUNC_NotifyEvent) 
     {
@@ -382,7 +383,7 @@ static int loadiJIT_Funcs()
 #if ITT_PLATFORM==ITT_PLATFORM_WIN
     FUNC_Initialize = (TPInitialize)GetProcAddress(m_libHandle, "Initialize");
 #else  /* ITT_PLATFORM==ITT_PLATFORM_WIN */
-    FUNC_Initialize = (TPInitialize)dlsym(m_libHandle, "Initialize");
+    FUNC_Initialize = (TPInitialize)(intptr_t)dlsym(m_libHandle, "Initialize");
 #endif /* ITT_PLATFORM==ITT_PLATFORM_WIN */
     if (!FUNC_Initialize) 
     {





More information about the llvm-commits mailing list