From 703f44e73c18a63a65499fedc57893ae0f413eac Mon Sep 17 00:00:00 2001 From: Ben Laurie Date: Sun, 27 Mar 2016 12:28:56 +0100 Subject: [PATCH] Make it legal C. Reviewed-by: Rich Salz --- include/openssl/lhash.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/openssl/lhash.h b/include/openssl/lhash.h index e10c5221bd..8b8822bbc8 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) { union { void* d1; unsigned long d2; int d3; }; }; \ + LHASH_OF(type) { union lh_##type##_dummy { void* d1; unsigned long d2; int d3; } dummy; }; \ static ossl_inline LHASH_OF(type) * \ lh_##type##_new(unsigned long (*hfn)(const type *), \ int (*cfn)(const type *, const type *)) \ -- 2.25.1