Skip to content
Snippets Groups Projects
Commit 3529decb authored by lhausamm's avatar lhausamm
Browse files

Fix int-in-bool-context with gcc-7.2

parent 635e7c31
Branches
Tags
1 merge request!444Fix int-in-bool-context with gcc-7.2
......@@ -1596,6 +1596,7 @@ void scheduler_print_tasks(const struct scheduler *s, const char *fileName) {
const int nr_tasks = s->nr_tasks, *tid = s->tasks_ind;
struct task *t, *tasks = s->tasks;
int test_type;
FILE *file = fopen(fileName, "w");
......@@ -1603,7 +1604,8 @@ void scheduler_print_tasks(const struct scheduler *s, const char *fileName) {
for (int k = nr_tasks - 1; k >= 0; k--) {
t = &tasks[tid[k]];
if (!((1 << t->type)) || t->skip) continue;
test_type = 1 << t->type;
if (!(test_type) || t->skip) continue;
fprintf(file, "%d %s %s %d %d\n", k, taskID_names[t->type],
subtaskID_names[t->subtype], t->nr_unlock_tasks, t->wait);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment