[Pkg-gnupg-commit] [libgpg-error] 11/32: w32: Fix lock c++ narrowing conversion warning

Daniel Kahn Gillmor dkg at fifthhorseman.net
Wed Nov 16 01:31:02 UTC 2016


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

dkg pushed a commit to branch master
in repository libgpg-error.

commit b1ccab5bf8e1206aae1307ad5d23890be4251c8f
Author: Andre Heinecke <aheinecke at intevation.de>
Date:   Fri Nov 11 16:54:55 2016 +0100

    w32: Fix lock c++ narrowing conversion warning
    
    * src/syscfg/lock-obj-pub.mingw32.h (gpgrt_lock_t): Declare priv as
    unsigned char.
    
    --
    This fixes error: narrowing conversion of ‘255’ from ‘int’ to
    ‘volatile char’ inside { } [-Werror=narrowing]
---
 src/syscfg/lock-obj-pub.mingw32.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/syscfg/lock-obj-pub.mingw32.h b/src/syscfg/lock-obj-pub.mingw32.h
index d6623cc..f35aee1 100644
--- a/src/syscfg/lock-obj-pub.mingw32.h
+++ b/src/syscfg/lock-obj-pub.mingw32.h
@@ -20,7 +20,7 @@
 #pragma pack(push, 8)
 typedef struct
 {
-  volatile char priv[56];
+  volatile unsigned char priv[56];
 } gpgrt_lock_t;
 #pragma pack(pop)
 
@@ -34,7 +34,7 @@ typedef struct
 #pragma pack(push, 8)
 typedef struct
 {
-  volatile char priv[36];
+  volatile unsigned char priv[36];
 } gpgrt_lock_t;
 #pragma pack(pop)
 

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



More information about the Pkg-gnupg-commit mailing list