Fix warnings from GCC 5
authorMark Abraham <mark.j.abraham@gmail.com>
Mon, 25 May 2015 15:43:45 +0000 (17:43 +0200)
committerTeemu Murtola <teemu.murtola@gmail.com>
Wed, 27 May 2015 03:32:07 +0000 (05:32 +0200)
commitf4211fafe64ebca04780d2621fa4c425920c2052
treee5ddbe99780b910bbff3c399535e30876e78670f
parent98f8274fca4745d9311d625ed74233d67f12f0e9
Fix warnings from GCC 5

Removed unnecessary ddata array from PME-spread spline
calculation. That might even be a useful optimization, for really bad
compilers. Moved declarations into the appropriate loops, so that
analyzers can work better here.

Added several other assertions to keep the code analyzers happy.

Reorganized implementation of get_vsite_masses to get cam declared and
used in a way that keeps analyzers happier. Removed a now useless
assert on j >= 1.

Change-Id: I9c5113f7e4013c629fca87614af4b74e249ee27a
src/gromacs/ewald/pme-spread.cpp
src/gromacs/mdlib/calc_verletbuf.c
src/gromacs/pulling/pull.cpp