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
16eca057
Commit
16eca057
authored
8 years ago
by
Matthieu Schaller
Browse files
Options
Downloads
Patches
Plain Diff
More warning eliminations.
parent
e7f0fdd9
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
configure.ac
+1
-1
1 addition, 1 deletion
configure.ac
src/runner_doiact.h
+1
-1
1 addition, 1 deletion
src/runner_doiact.h
src/serial_io.c
+1
-1
1 addition, 1 deletion
src/serial_io.c
src/space.c
+2
-2
2 additions, 2 deletions
src/space.c
with
5 additions
and
5 deletions
configure.ac
+
1
−
1
View file @
16eca057
...
...
@@ -466,7 +466,7 @@ if test "$enable_warn" != "no"; then
# We will do this by hand instead and only default to the macro for unknown compilers
case "$ax_cv_c_compiler_vendor" in
gnu | clang)
CFLAGS="$CFLAGS -Wall"
CFLAGS="$CFLAGS -Wall
-Wextra -Wno-unused-parameter
"
;;
intel)
CFLAGS="$CFLAGS -w2 -Wunused-variable"
...
...
This diff is collapsed.
Click to expand it.
src/runner_doiact.h
+
1
−
1
View file @
16eca057
...
...
@@ -2862,7 +2862,7 @@ void DOSUB_SUBSET(struct runner *r, struct cell *ci, struct part *parts,
}
/* Get the sorting index. */
int
sid
=
0
;
int
new_
sid
=
0
;
for
(
int
k
=
0
;
k
<
3
;
k
++
)
new_sid
=
3
*
new_sid
+
((
cj
->
loc
[
k
]
-
ci
->
loc
[
k
]
+
shift
[
k
]
<
0
)
...
...
This diff is collapsed.
Click to expand it.
src/serial_io.c
+
1
−
1
View file @
16eca057
...
...
@@ -179,7 +179,7 @@ void readArray(hid_t grp, const struct io_props props, size_t N,
void
prepareArray
(
struct
engine
*
e
,
hid_t
grp
,
char
*
fileName
,
FILE
*
xmfFile
,
char
*
partTypeGroupName
,
const
struct
io_props
props
,
long
long
N_total
,
const
struct
UnitSystem
*
internal_units
,
unsigned
long
long
N_total
,
const
struct
UnitSystem
*
internal_units
,
const
struct
UnitSystem
*
snapshot_units
)
{
/* Create data space */
...
...
This diff is collapsed.
Click to expand it.
src/space.c
+
2
−
2
View file @
16eca057
...
...
@@ -707,7 +707,7 @@ void space_parts_sort(struct space *s, int *ind, size_t N, int min, int max,
if
((
sort_struct
.
stack
=
malloc
(
sizeof
(
struct
qstack
)
*
sort_struct
.
stack_size
))
==
NULL
)
error
(
"Failed to allocate sorting stack."
);
for
(
int
i
=
0
;
i
<
sort_struct
.
stack_size
;
i
++
)
for
(
unsigned
int
i
=
0
;
i
<
sort_struct
.
stack_size
;
i
++
)
sort_struct
.
stack
[
i
].
ready
=
0
;
/* Add the first interval. */
...
...
@@ -892,7 +892,7 @@ void space_gparts_sort(struct space *s, int *ind, size_t N, int min, int max,
if
((
sort_struct
.
stack
=
malloc
(
sizeof
(
struct
qstack
)
*
sort_struct
.
stack_size
))
==
NULL
)
error
(
"Failed to allocate sorting stack."
);
for
(
int
i
=
0
;
i
<
sort_struct
.
stack_size
;
i
++
)
for
(
unsigned
int
i
=
0
;
i
<
sort_struct
.
stack_size
;
i
++
)
sort_struct
.
stack
[
i
].
ready
=
0
;
/* Add the first interval. */
...
...
This diff is collapsed.
Click to expand it.
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