From 290eff39c0404f144d9c18e7aaf99f52eb00782e Mon Sep 17 00:00:00 2001 From: "Eric N. Vander Weele" Date: Thu, 5 Jan 2017 14:43:39 -0800 Subject: [PATCH] blake2: Use lowest-common denominator signature of #pragma pack Solaris Studio emits the following during compilation: "/tmp/Python-3.6.0/Modules/_blake2/impl/blake2.h", line 89: warning: ignoring malformed #pragma pack(n) "/tmp/Python-3.6.0/Modules/_blake2/impl/blake2.h", line 119: warning: ignoring malformed #pragma pack(n) To make the usage of '#pragma pack' more portable, change to the optional, single argument form. Signed-off-by: Eric N. Vander Weele --- Modules/_blake2/impl/blake2.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Modules/_blake2/impl/blake2.h b/Modules/_blake2/impl/blake2.h index 1a9fdf4302..3120782114 100644 --- a/Modules/_blake2/impl/blake2.h +++ b/Modules/_blake2/impl/blake2.h @@ -86,7 +86,7 @@ extern "C" { } blake2bp_state; -#pragma pack(push, 1) +#pragma pack(1) typedef struct __blake2s_param { uint8_t digest_length; /* 1 */ @@ -116,7 +116,7 @@ extern "C" { uint8_t salt[BLAKE2B_SALTBYTES]; /* 48 */ uint8_t personal[BLAKE2B_PERSONALBYTES]; /* 64 */ } blake2b_param; -#pragma pack(pop) +#pragma pack() /* Streaming API */ int blake2s_init( blake2s_state *S, const uint8_t outlen ); -- 2.11.0