Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SWIFT
SWIFTsim
Commits
3529decb
Commit
3529decb
authored
Oct 20, 2017
by
lhausamm
Browse files
Fix int-in-bool-context with gcc-7.2
parent
635e7c31
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/scheduler.c
View file @
3529decb
...
...
@@ -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
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment