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
d68d760e
Commit
d68d760e
authored
Sep 09, 2016
by
Matthieu Schaller
Browse files
Silence a compiler warning in .
parent
c5417916
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/task.c
View file @
d68d760e
...
...
@@ -63,7 +63,7 @@ const char *subtaskID_names[task_subtype_count] = {
* @param cj The second #cell.
*/
__attribute__
((
always_inline
))
INLINE
static
size_t
task_cell_overlap_part
(
const
struct
cell
*
ci
,
const
struct
cell
*
cj
)
{
const
struct
cell
*
restrict
ci
,
const
struct
cell
*
restrict
cj
)
{
if
(
ci
==
NULL
||
cj
==
NULL
)
return
0
;
...
...
@@ -85,7 +85,7 @@ __attribute__((always_inline)) INLINE static size_t task_cell_overlap_part(
* @param cj The second #cell.
*/
__attribute__
((
always_inline
))
INLINE
static
size_t
task_cell_overlap_gpart
(
const
struct
cell
*
ci
,
const
struct
cell
*
cj
)
{
const
struct
cell
*
restrict
ci
,
const
struct
cell
*
restrict
cj
)
{
if
(
ci
==
NULL
||
cj
==
NULL
)
return
0
;
...
...
@@ -168,6 +168,10 @@ __attribute__((always_inline)) INLINE static enum task_actions task_acts_on(
return
task_action_none
;
break
;
}
/* Silence compile warnings */
error
(
"Unknown task_action for task"
);
return
task_action_none
;
}
/**
...
...
@@ -177,7 +181,8 @@ __attribute__((always_inline)) INLINE static enum task_actions task_acts_on(
* @param ta The first #task.
* @param tb The second #task.
*/
float
task_overlap
(
const
struct
task
*
ta
,
const
struct
task
*
tb
)
{
float
task_overlap
(
const
struct
task
*
restrict
ta
,
const
struct
task
*
restrict
tb
)
{
if
(
ta
==
NULL
||
tb
==
NULL
)
return
0
.
f
;
...
...
Matthieu Schaller
@matthieu
mentioned in issue
#214
·
Sep 09, 2016
mentioned in issue
#214
mentioned in issue #214
Toggle commit list
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