浏览代码

src/util/openmp_runtime_support_environment.c: decrease variable scope

Nathalie Furmento 8 年之前
父节点
当前提交
18b9deda32
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/util/openmp_runtime_support_environment.c

+ 1 - 1
src/util/openmp_runtime_support_environment.c

@@ -539,7 +539,6 @@ static void free_places(struct starpu_omp_place *places)
 
 static void read_proc_bind_var()
 {
-	static const char *strings[] = { "false", "true", "master", "close", "spread", NULL };
 	const int max_levels = _initial_icv_values.max_active_levels_var + 1;
 	int *bind_list = NULL;
 	char *env;
@@ -549,6 +548,7 @@ static void read_proc_bind_var()
 	env = starpu_getenv("OMP_PROC_BIND");
 	if (env)
 	{
+		static const char *strings[] = { "false", "true", "master", "close", "spread", NULL };
 		char *saveptr, *token;
 		int level = 0;