From: bsegovia Date: Tue, 11 Oct 2011 02:30:40 +0000 (+0000) Subject: Removed warnings X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d01814c4e5feef2a7bf13695c1d851d4f42eed7d;p=contrib%2Fbeignet.git Removed warnings --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 977bc77..821adcd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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") diff --git a/src/cl_api.c b/src/cl_api.c index 7940348..5d7d0ea 100644 --- a/src/cl_api.c +++ b/src/cl_api.c @@ -31,6 +31,7 @@ #include "CL/cl_intel.h" #include +#include #include cl_int diff --git a/src/cl_mem.c b/src/cl_mem.c index 0fab168..f37c846 100644 --- a/src/cl_mem.c +++ b/src/cl_mem.c @@ -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; } diff --git a/src/intel/intel_driver.c b/src/intel/intel_driver.c index a0acf59..dd48222 100644 --- a/src/intel/intel_driver.c +++ b/src/intel/intel_driver.c @@ -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