diff options
author | Benjamin Segovia <benjamin.segovia@intel.com> | 2012-11-09 01:05:16 -0800 |
---|---|---|
committer | Benjamin Segovia <benjamin.segovia@intel.com> | 2012-11-09 01:05:16 -0800 |
commit | d44f852522abe5aa0f6d460f6f4d3c63cb7b2bb4 (patch) | |
tree | 8e31b92eaffe4b01f750cc157720a99d6d40a09b /utests/utest_file_map.cpp | |
parent | 382b40b0e08de77b6173044e2e56439ac1b31068 (diff) | |
download | beignet-d44f852522abe5aa0f6d460f6f4d3c63cb7b2bb4.tar.gz |
Fixed more warning with LLVM 3.2
Redisabled LLVM 3.2. There are still problems. Some kernels output wrong code.
It is certainly the lost copy issue.
Diffstat (limited to 'utests/utest_file_map.cpp')
-rw-r--r-- | utests/utest_file_map.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utests/utest_file_map.cpp b/utests/utest_file_map.cpp index 680caaf3..da3361c0 100644 --- a/utests/utest_file_map.cpp +++ b/utests/utest_file_map.cpp @@ -100,7 +100,7 @@ cl_file_map_open(cl_file_map_t *fm, const char *name) fm->size = lseek(fm->fd, 0, SEEK_END); lseek(fm->fd, 0, SEEK_SET); fm->start = mmap(0, fm->size, PROT_READ, MAP_SHARED, fm->fd, 0); - if(fm->start <= 0) { + if(fm->start == NULL) { err = CL_FILE_MAP_FAILED_TO_MMAP; goto error; } |