aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2017-10-19 12:39:21 -0400
committerJack Lloyd <[email protected]>2017-10-19 12:39:21 -0400
commit2e491b4ddbb63543d027a8a84a9fb523383ff3f0 (patch)
tree5ac32232c9266714aa7ab1b9ee937c571a55fa12 /src/lib
parentb084770543409555bfc928cdafe66d9475a55baf (diff)
Add a destructor to Policy_Violation
MSVC produces a deranged warning that the compiler generated destructor is deprecated, try to shut it up.
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/utils/exceptn.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/lib/utils/exceptn.h b/src/lib/utils/exceptn.h
index 5af6b01cc..89b047e1a 100644
--- a/src/lib/utils/exceptn.h
+++ b/src/lib/utils/exceptn.h
@@ -114,10 +114,11 @@ class BOTAN_PUBLIC_API(2,0) PRNG_Unseeded final : public Invalid_State
/**
* Policy_Violation Exception
*/
-class BOTAN_DEPRECATED("unused") BOTAN_PUBLIC_API(2,0) Policy_Violation final : public Invalid_State
+class BOTAN_DEPRECATED("deprecated") BOTAN_PUBLIC_API(2,0) Policy_Violation final : public Invalid_State
{
public:
explicit Policy_Violation(const std::string& err);
+ ~Policy_Violation() { /* avoid strange MSVC warning */ }
};
/**
@@ -132,7 +133,7 @@ class BOTAN_PUBLIC_API(2,0) Algorithm_Not_Found final : public Lookup_Error
/**
* No_Provider_Found Exception
*/
-class BOTAN_DEPRECATED("unused") BOTAN_PUBLIC_API(2,0) No_Provider_Found final : public Exception
+class BOTAN_DEPRECATED("deprecated") BOTAN_PUBLIC_API(2,0) No_Provider_Found final : public Exception
{
public:
explicit No_Provider_Found(const std::string& name);
@@ -205,7 +206,7 @@ class BOTAN_PUBLIC_API(2,0) Stream_IO_Error final : public Exception
/**
* Self Test Failure Exception
*/
-class BOTAN_DEPRECATED("unused") BOTAN_PUBLIC_API(2,0) Self_Test_Failure final : public Internal_Error
+class BOTAN_DEPRECATED("deprecated") BOTAN_PUBLIC_API(2,0) Self_Test_Failure final : public Internal_Error
{
public:
explicit Self_Test_Failure(const std::string& err);