Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
yurivict opened this issue May 21, 2022 · 0 comments

Comments

@yurivict
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant