From 32baac8cdec6fee51bdfc3c55cb2ee141e086df4 Mon Sep 17 00:00:00 2001 From: Andre Heinecke Date: Fri, 16 Sep 2016 16:52:03 +0200 Subject: [PATCH] cpp: Declare sizes of tofu-info enums * lang/cpp/src/tofuinfo.h (Policy, Validity): Declare sizes. -- This is a quick ABI break before the release so that we can easier extend them in the future. All new enums in public API should be declared with a size from now on. --- lang/cpp/src/tofuinfo.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lang/cpp/src/tofuinfo.h b/lang/cpp/src/tofuinfo.h index ec253e96..c09c82ad 100644 --- a/lang/cpp/src/tofuinfo.h +++ b/lang/cpp/src/tofuinfo.h @@ -56,7 +56,7 @@ public: /* @enum Validity * @brief The TOFU Validity. */ - enum Validity { + enum Validity : unsigned int { /*! Unknown (uninitialized).*/ ValidityUnknown, /*! TOFU Conflict.*/ @@ -74,7 +74,7 @@ public: /* @enum Policy * @brief The TOFU Validity. */ - enum Policy { + enum Policy : unsigned int { /*! GPGME_TOFU_POLICY_NONE */ PolicyNone, /*! GPGME_TOFU_POLICY_AUTO */