From 10a9ae85edd4f0de7f06b96ed839d576a724b4a4 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Fri, 12 Apr 2019 09:38:02 +0200 Subject: clang is only happy with 'static', not with ={0} --- src/include/gnunet_common.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/include') diff --git a/src/include/gnunet_common.h b/src/include/gnunet_common.h index 2c11ae15f..94ecd06f8 100644 --- a/src/include/gnunet_common.h +++ b/src/include/gnunet_common.h @@ -933,8 +933,8 @@ GNUNET_ntoh_double (double d); * entire memory being zero'ed out. */ #define GNUNET_is_zero(a) ({ \ - const typeof(*a) _z = { 0 }; \ - memcmp(a, \ + static const typeof(*a) _z; \ + memcmp((a), \ &_z, \ sizeof (_z)); }) -- cgit v1.2.3