Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
SWIFTsim
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SWIFT
SWIFTsim
Commits
d68d760e
Commit
d68d760e
authored
8 years ago
by
Matthieu Schaller
Browse files
Options
Downloads
Patches
Plain Diff
Silence a compiler warning in .
parent
c5417916
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/task.c
+8
-3
8 additions, 3 deletions
src/task.c
with
8 additions
and
3 deletions
src/task.c
+
8
−
3
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
;
...
...
This diff is collapsed.
Click to expand it.
Matthieu Schaller
@matthieu
mentioned in issue
#214
·
8 years ago
mentioned in issue
#214
mentioned in issue #214
Toggle commit list
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment