From: Jeffrey Walton Date: Fri, 25 Mar 2016 13:06:47 +0000 (-0400) Subject: RT4476: Fix some cast-alignment warnings X-Git-Tag: OpenSSL_1_1_0-pre5~227 X-Git-Url: https://git.openssl.org/?p=openssl.git;a=commitdiff_plain;h=c828cd7cd0426dde10b07e7b68f3741a5ea91fc6;hp=7793e17440539b71aee62afd81846717d9423f2e RT4476: Fix some cast-alignment warnings Reviewed-by: Richard Levitte --- diff --git a/include/openssl/lhash.h b/include/openssl/lhash.h index 2edd738a8b..e10c5221bd 100644 --- a/include/openssl/lhash.h +++ b/include/openssl/lhash.h @@ -180,7 +180,7 @@ void lh_node_usage_stats_bio(const _LHASH *lh, BIO *out); # define LHASH_OF(type) struct lhash_st_##type # define DEFINE_LHASH_OF(type) \ - LHASH_OF(type) { int dummy; }; \ + LHASH_OF(type) { union { void* d1; unsigned long d2; int d3; }; }; \ static ossl_inline LHASH_OF(type) * \ lh_##type##_new(unsigned long (*hfn)(const type *), \ int (*cfn)(const type *, const type *)) \