Remove unused code detected by PGI compiler
authorErik Lindahl <erik@kth.se>
Fri, 31 Jul 2015 22:13:25 +0000 (00:13 +0200)
committerGerrit Code Review <gerrit@gerrit.gromacs.org>
Mon, 16 Nov 2015 15:24:32 +0000 (16:24 +0100)
commiteadd816527e36dd4b5c016c6b054231dd9a2e14c
tree9a65f7bf93b299247744cfac8a9f0a2dad5dc946
parent600266dfeca6e419527a740f8b587493462b41af
Remove unused code detected by PGI compiler

Minor cleanup to fix warnings issued by the PGI compiler.
- Unused routines have been removed, including ones that
  were never referenced unless specific defines were set
  directly in source files.
- Unreachable breaks have been removed.
- Add a flag to suppress warning that PGI does not
  understand a GCC pragma in the generated parser.cpp

There are still issues with PGI not catching exceptions
in the unit tests, SIMD, and OpenMP.

Change-Id: Ic7900b80e31745aafa031c806f0664734014bbe5
26 files changed:
cmake/gmxCFlags.cmake
src/gromacs/ewald/calculate-spline-moduli.cpp
src/gromacs/ewald/pme-grid.cpp
src/gromacs/fileio/checkpoint.cpp
src/gromacs/gmxana/gmx_bar.cpp
src/gromacs/gmxana/gmx_eneconv.cpp
src/gromacs/gmxana/gmx_hbond.cpp
src/gromacs/gmxana/gmx_hydorder.cpp
src/gromacs/gmxana/gmx_make_ndx.cpp
src/gromacs/gmxana/nrama.cpp
src/gromacs/gmxana/princ.cpp
src/gromacs/gmxlib/conformation-utilities.cpp
src/gromacs/gmxpreprocess/gen_ad.cpp
src/gromacs/gmxpreprocess/topdirs.cpp
src/gromacs/gmxpreprocess/x2top.cpp
src/gromacs/listed-forces/bonded.cpp
src/gromacs/mdlib/calcvir.cpp
src/gromacs/mdlib/clincs.cpp
src/gromacs/mdlib/genborn.cpp
src/gromacs/mdlib/ns.cpp
src/gromacs/mdlib/qmmm.cpp
src/gromacs/mdlib/shakef.cpp
src/gromacs/mdlib/wnblist.cpp
src/gromacs/utility/basenetwork.cpp
src/gromacs/utility/cstringutil.cpp
src/programs/mdrun/repl_ex.cpp