Commit 1b8c81a3 authored by Eurecom's avatar Eurecom

a label can only be a part of a statement

parent 6a1704f0
......@@ -451,7 +451,7 @@ static int num_threads(char* params)
//pool->activated=false;
break;
default:
default: ;
int core_id = atoi(curptr);
printf("create a thread for core %d\n", core_id);
// set the thread name for debugging
......
......@@ -503,14 +503,16 @@ int num_threads(char* params)
int c=toupper(curptr[0]);
switch (c) {
case 'N':
case 'N': {
//pool->activated=false;
break;
}
default:
default:{
int core_id = atoi(curptr);
printf("create a thread for core %d\n", core_id);
nbThreads++;
}
}
curptr=strtok_r(NULL,",",&saveptr);
......
......@@ -118,7 +118,7 @@ int num_threads(char* parms_cpy)
//pool->activated=false;
break;
default:
default: ;
int const core_id = atoi(curptr);
printf("create a thread for core %d\n", core_id);
nbThreads++;
......
......@@ -278,7 +278,7 @@ int num_threads(char* parms_cpy)
//pool->activated=false;
break;
default:
default: ;
int const core_id = atoi(curptr);
printf("create a thread for core %d\n", core_id);
nbThreads++;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment