Removed warnings
authorbsegovia <devnull@localhost>
Tue, 11 Oct 2011 02:30:40 +0000 (02:30 +0000)
committerKeith Packard <keithp@keithp.com>
Fri, 10 Aug 2012 23:14:55 +0000 (16:14 -0700)
CMakeLists.txt
src/cl_api.c
src/cl_mem.c
src/intel/intel_driver.c

index 977bc77..821adcd 100644 (file)
@@ -35,7 +35,6 @@ ELSE (USE_FULSIM)
   ADD_DEFINITIONS(-DUSE_FULSIM=0)
 ENDIF (USE_FULSIM)
 
-
 SET(CMAKE_CXX_FLAGS "-Wall -Wno-invalid-offsetof -mfpmath=sse --no-exceptions --no-rtti -Wcast-align -std=c++0x")
 SET(CMAKE_C_FLAGS "-Wall -mfpmath=sse -msse2 -Wcast-align")
 
index 7940348..5d7d0ea 100644 (file)
@@ -31,6 +31,7 @@
 #include "CL/cl_intel.h"
 
 #include <stdio.h>
+#include <string.h>
 #include <assert.h>
 
 cl_int
index 0fab168..f37c846 100644 (file)
@@ -157,9 +157,7 @@ cl_mem_pin(cl_mem mem)
   assert(mem);
   if ((mem->flags & CL_MEM_PINNABLE) == 0)
     return CL_INVALID_MEM;
-  printf("%x\n", mem->bo->offset / 16);
   drm_intel_bo_pin(mem->bo, 4096);
-  printf("%x\n", mem->bo->offset / 16);
   return CL_SUCCESS;
 }
 
index a0acf59..dd48222 100644 (file)
@@ -169,7 +169,7 @@ intel_driver_close(intel_driver_t *intel)
   if(intel->fd) close(intel->fd);
   intel->dri_ctx = NULL;
   intel->x11_display = NULL;
-  intel->fd = NULL;
+  intel->fd = 0;
 }
 
 LOCAL int