Browse Source

fix warning

Samuel Thibault 8 years ago
parent
commit
9ee2fe9e5c
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/core/workers.c

+ 2 - 2
src/core/workers.c

@@ -273,14 +273,14 @@ static inline int _starpu_can_use_nth_implementation(enum starpu_worker_archtype
 	case STARPU_MIC_WORKER:
 	case STARPU_MIC_WORKER:
 	{
 	{
 		starpu_mic_func_t func = _starpu_task_get_mic_nth_implementation(cl, nimpl);
 		starpu_mic_func_t func = _starpu_task_get_mic_nth_implementation(cl, nimpl);
-		char *func_name = _starpu_task_get_cpu_name_nth_implementation(cl, nimpl);
+		const char *func_name = _starpu_task_get_cpu_name_nth_implementation(cl, nimpl);
 
 
 		return func != NULL || func_name != NULL;
 		return func != NULL || func_name != NULL;
 	}
 	}
 	case STARPU_SCC_WORKER:
 	case STARPU_SCC_WORKER:
 	{
 	{
 		starpu_scc_func_t func = _starpu_task_get_scc_nth_implementation(cl, nimpl);
 		starpu_scc_func_t func = _starpu_task_get_scc_nth_implementation(cl, nimpl);
-		char *func_name = _starpu_task_get_cpu_name_nth_implementation(cl, nimpl);
+		const char *func_name = _starpu_task_get_cpu_name_nth_implementation(cl, nimpl);
 
 
 		return func != NULL || func_name != NULL;
 		return func != NULL || func_name != NULL;
 	}
 	}