summaryrefslogtreecommitdiff
path: root/utests/utest_helper.hpp
diff options
context:
space:
mode:
authorLv Meng <meng.lv@intel.com>2014-08-14 11:33:06 +0800
committerYang Rong <rong.r.yang@intel.com>2014-08-19 14:05:42 +0800
commitb9334672bfeab9247ff92d0051d93b98b8e3da39 (patch)
treeade373b5a14f4eae6be8d1b3bcfffbe1d18b921d /utests/utest_helper.hpp
parent506a19f6aee9103fe01ec9c0264b6f78004cfbe2 (diff)
downloadbeignet-b9334672bfeab9247ff92d0051d93b98b8e3da39.tar.gz
Fix compile warnings for ICC compiler
1.the "const" associated functions' modification is to fix "type qualifier on return type is meaningless" for ICC compile warning. 2.the "operator new" shoud have the corresponding "operator delete" function. 3.In C++0x std::auto_ptr will be deprecated in favor of std::unique_ptr. Signed-off-by: Lv Meng <meng.lv@intel.com> Reviewed-by: "Song, Ruiling" <ruiling.song@intel.com>
Diffstat (limited to 'utests/utest_helper.hpp')
-rw-r--r--utests/utest_helper.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/utests/utest_helper.hpp b/utests/utest_helper.hpp
index de4d2771..a434fb4e 100644
--- a/utests/utest_helper.hpp
+++ b/utests/utest_helper.hpp
@@ -225,10 +225,10 @@ extern void cl_write_bmp(const int *data, int width, int height, const char *fil
extern int cl_check_image(const int *img, int w, int h, const char *bmp);
/* Calculator ULP of each FLOAT value */
-extern const float cl_FLT_ULP(float float_number);
+extern float cl_FLT_ULP(float float_number);
/* Calculator ULP of each INT value */
-extern const int cl_INT_ULP(int int_number);
+extern int cl_INT_ULP(int int_number);
#endif /* __UTEST_HELPER_HPP__ */