Skip to content

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

Description

@yurivict

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions