Skip to content

Commit

Permalink
Merge pull request #31146 from Dr15Jones/gcc10prepareMagneticFieldGrid
Browse files Browse the repository at this point in the history
Fix gcc10 warning in prepareMagneticFieldGrid
  • Loading branch information
cmsbuild authored Aug 15, 2020
2 parents 247f9a7 + 01207ca commit b8123c3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1411,7 +1411,7 @@ void prepareMagneticFieldGrid::interpolateAtPoint(double X1, double X2, double X
void prepareMagneticFieldGrid::putCoordGetIndices(
double X1, double X2, double X3, int &Index1, int &Index2, int &Index3) {
double pnt[3] = {X1, X2, X3};
int index[3];
int index[3] = {0, 0, 0};

if (GridType < 5) {
for (int i = 0; i < 3; ++i) {
Expand Down Expand Up @@ -1477,7 +1477,7 @@ void prepareMagneticFieldGrid::putIndicesGetXAndB(
void prepareMagneticFieldGrid::putIndCalcXReturnB(
int Index1, int Index2, int Index3, double &X1, double &X2, double &X3, double &Bx, double &By, double &Bz) {
int index[3] = {Index1, Index2, Index3};
double pnt[3];
double pnt[3] = {0., 0., 0.};

if (GridType < 5) {
for (int i = 0; i < 3; ++i) {
Expand Down

0 comments on commit b8123c3

Please sign in to comment.