Skip to content
Snippets Groups Projects
Commit babf1e97 authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Fixes for clang compilation.

parent 08f16ff9
No related branches found
No related tags found
No related merge requests found
...@@ -235,7 +235,7 @@ void memuse_rnode_dump(int depth, struct memuse_rnode *node, int full) { ...@@ -235,7 +235,7 @@ void memuse_rnode_dump(int depth, struct memuse_rnode *node, int full) {
// char ptr[MEMUSE_MAXLABLEN]; // char ptr[MEMUSE_MAXLABLEN];
uint8_t key[sizeof(uintptr_t)]; uint8_t key[sizeof(uintptr_t)];
void *ptr; void *ptr;
} keyparts = {0}; } keyparts = {{0}};
/* Record keypart at this depth. Root has no keypart. */ /* Record keypart at this depth. Root has no keypart. */
if (depth != 0) keyparts.key[depth - 1] = node->keypart; if (depth != 0) keyparts.key[depth - 1] = node->keypart;
......
...@@ -1410,9 +1410,8 @@ void runner_dopair_grav_mm_progenies(struct runner *r, const long long flags, ...@@ -1410,9 +1410,8 @@ void runner_dopair_grav_mm_progenies(struct runner *r, const long long flags,
} }
} }
static INLINE void runner_dopair_recursive_grav_pm(struct runner *r, void runner_dopair_recursive_grav_pm(struct runner *r, struct cell *ci,
struct cell *ci, const struct cell *cj) {
const struct cell *cj) {
/* Some constants */ /* Some constants */
const struct engine *e = r->e; const struct engine *e = r->e;
const int periodic = e->mesh->periodic; const int periodic = e->mesh->periodic;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment