[Pkg-gnupg-commit] [gpgme] 376/412: cpp: Declare sizes of tofu-info enums

Daniel Kahn Gillmor dkg at fifthhorseman.net
Thu Sep 22 21:27:23 UTC 2016


This is an automated email from the git hooks/post-receive script.

dkg pushed a commit to branch master
in repository gpgme.

commit 32baac8cdec6fee51bdfc3c55cb2ee141e086df4
Author: Andre Heinecke <aheinecke at intevation.de>
Date:   Fri Sep 16 16:52:03 2016 +0200

    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 ec253e9..c09c82a 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 */

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-gnupg/gpgme.git



More information about the Pkg-gnupg-commit mailing list