浏览代码

include/starpu_opencl.h: add a const qualifier (Thanks to Jonathan Adamczewski <jadamcze@utas.edu.au> for the patch)

Nathalie Furmento 14 年之前
父节点
当前提交
4f49f723e3
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      include/starpu_opencl.h

+ 1 - 1
include/starpu_opencl.h

@@ -31,7 +31,7 @@ extern "C" {
 
 #define STARPU_OPENCL_DISPLAY_ERROR(status)                                     \
 	do {                                                            \
-		char *errormsg;                                         \
+                const char *errormsg;                                   \
 		switch (status) {                                       \
 		case CL_SUCCESS:                                        \
 			errormsg = "success";                           \