diff options
author | David Robillard <d@drobilla.net> | 2020-12-16 13:24:37 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-12-16 13:25:32 +0100 |
commit | 5680e5900f6fb89ec66af6480a7d125fc8960552 (patch) | |
tree | 88d6133a0f2975b3993501b9f3b629f519c370d5 | |
parent | 6a61d5eb9b5fda7525534bbc3a568642af1a8516 (diff) | |
download | raul-5680e5900f6fb89ec66af6480a7d125fc8960552.tar.gz raul-5680e5900f6fb89ec66af6480a7d125fc8960552.tar.bz2 raul-5680e5900f6fb89ec66af6480a7d125fc8960552.zip |
Fix build with older GCC
This reverts commit 57602cd13969d72cfae284bccdeee1ac6bf15c1e.
-rw-r--r-- | include/raul/Exception.hpp | 2 | ||||
-rw-r--r-- | test/.clang-tidy | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/include/raul/Exception.hpp b/include/raul/Exception.hpp index 0e8d3ba..478017d 100644 --- a/include/raul/Exception.hpp +++ b/include/raul/Exception.hpp @@ -26,7 +26,7 @@ namespace Raul { /** An exception (unexpected error). */ class Exception : public std::exception { public: - const char* what() const noexcept final { return _what.c_str(); } + const char* what() const noexcept final override { return _what.c_str(); } protected: explicit Exception(std::string what) : _what(std::move(what)) {} diff --git a/test/.clang-tidy b/test/.clang-tidy index 5b80730..023fd87 100644 --- a/test/.clang-tidy +++ b/test/.clang-tidy @@ -29,7 +29,9 @@ Checks: > -readability-else-after-return, -readability-implicit-bool-conversion, -readability-use-anyofallof, -WarningsAsErrors: '*' +CheckOptions: + - key: modernize-use-override.AllowOverrideAndFinal + value: true HeaderFilterRegex: '.*' FormatStyle: file |