Fix int-in-bool-context with gcc-7.2
With GCC-7.2.0, I am getting the following error:
scheduler.c:1606:14: error: ‘<<’ in boolean context, did you mean ‘<’ ? [-Werror=int-in-bool-context]
if (!((1 << t->type)) || t->skip) continue;
~~~~^~~~~~~~~~~~
Merge request reports
Activity
Reassigned to @pdraper
Reassigned to @matthieu
1603 1604 1604 1605 for (int k = nr_tasks - 1; k >= 0; k--) { 1605 1606 t = &tasks[tid[k]]; 1606 if (!((1 << t->type)) || t->skip) continue; 1607 test_type = 1 << t->type; 1608 if (!(test_type) || t->skip) continue; 1607 1609 fprintf(file, "%d %s %s %d %d\n", k, taskID_names[t->type], Added 1 commit:
- b98aa3f3 - Remove test t->type
mentioned in commit 929df6d8
Please register or sign in to reply