From e0189cb741454418ce9391f857425aafcdee1032 Mon Sep 17 00:00:00 2001 From: jsteube Date: Sun, 29 Jan 2017 10:23:34 +0100 Subject: [PATCH] Fix some compiler warnings for older compilers --- OpenCL/inc_types.cl | 12 ++++++++---- include/interface.h | 12 ++++++++---- 2 files changed, 16 insertions(+), 8 deletions(-) diff --git a/OpenCL/inc_types.cl b/OpenCL/inc_types.cl index 25b8d7868..96a608a6a 100644 --- a/OpenCL/inc_types.cl +++ b/OpenCL/inc_types.cl @@ -753,25 +753,29 @@ typedef struct luks_tmp { u32 ipad32[32]; u64 ipad64[16]; - }; + + } ipad; union { u32 opad32[32]; u64 opad64[16]; - }; + + } opad; union { u32 dgst32[32]; u64 dgst64[16]; - }; + + } dgst; union { u32 out32[32]; u64 out64[16]; - }; + + } out; } luks_tmp_t; diff --git a/include/interface.h b/include/interface.h index 7d72c49d7..ac18817b0 100644 --- a/include/interface.h +++ b/include/interface.h @@ -135,25 +135,29 @@ typedef struct luks_tmp { u32 ipad32[32]; u64 ipad64[16]; - }; + + } ipad; union { u32 opad32[32]; u64 opad64[16]; - }; + + } opad; union { u32 dgst32[32]; u64 dgst64[16]; - }; + + } dgst; union { u32 out32[32]; u64 out64[16]; - }; + + } out; } luks_tmp_t;