Commit 7a885c52 authored by Pedro Gonnet's avatar Pedro Gonnet
Browse files

fix initialization to avoid bogus warnings in gcc-4.8.1


Former-commit-id: 8a37e45c341515adcca1f539f2a3f0667d652e89
parent 8140bea2
......@@ -239,8 +239,9 @@ void DOSELF_NAIVE ( struct runner *r , struct cell *restrict c ) {
/* Get a hold of the ith part in ci. */
pi = &parts[ pid ];
for ( k = 0 ; k < 3 ; k++ )
pix[k] = pi->x[k];
pix[0] = pi->x[0];
pix[1] = pi->x[1];
pix[2] = pi->x[2];
hi = pi->h;
hig2 = hi * hi * kernel_gamma2;
......@@ -544,8 +545,9 @@ void DOSELF_SUBSET ( struct runner *r , struct cell *restrict ci , struct part *
/* Get a hold of the ith part in ci. */
pi = &parts[ ind[ pid ] ];
for ( k = 0 ; k < 3 ; k++ )
pix[k] = pi->x[k];
pix[0] = pi->x[0];
pix[1] = pi->x[1];
pix[2] = pi->x[2];
hi = pi->h;
hig2 = hi * hi * kernel_gamma2;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment