PCMSolver / pcmsolver

An API for the Polarizable Continuum Model
http://pcmsolver.readthedocs.io/
GNU Lesser General Public License v3.0
32 stars 21 forks source link

warning: '~Section' has a non-throwing exception specification but can still throw #199

Open yurivict opened 2 years ago

yurivict commented 2 years ago

clang-12 complains:

/disk-samsung/freebsd-ports/science/pcmsolver/work/pcmsolver-1.3.0/src/utils/getkw/Section.cpp:110:5: warning: '~Section' has a non-throwing exception specification but can still throw [-Wexceptions]
    THROW_GETKW("Error! Unknown key type!");
    ^
/disk-samsung/freebsd-ports/science/pcmsolver/work/pcmsolver-1.3.0/src/utils/getkw/GetkwError.h:27:5: note: expanded from macro 'THROW_GETKW'
    throw GetkwError(_err);                                                         \
    ^
/disk-samsung/freebsd-ports/science/pcmsolver/work/pcmsolver-1.3.0/src/utils/getkw/Section.cpp:58:10: note: destructor has a implicit non-throwing exception specification
Section::~Section() {
         ^
1 warning generated.

Version: 1.3.0 FreeBSD 13