diff options
author | Christian Grothoff <christian@grothoff.org> | 2019-04-12 09:38:02 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2019-04-12 09:38:02 +0200 |
commit | 10a9ae85edd4f0de7f06b96ed839d576a724b4a4 (patch) | |
tree | 213d406c1df7e64866abc213f7b13621f2bbee6b /src/include/gnunet_common.h | |
parent | 0778ffa854d2bb626ebedfe3c1e8ca6a1209e42e (diff) | |
download | gnunet-10a9ae85edd4f0de7f06b96ed839d576a724b4a4.tar.gz gnunet-10a9ae85edd4f0de7f06b96ed839d576a724b4a4.zip |
clang is only happy with 'static', not with ={0}
Diffstat (limited to 'src/include/gnunet_common.h')
-rw-r--r-- | src/include/gnunet_common.h | 4 |
1 files changed, 2 insertions, 2 deletions
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); | |||
933 | * entire memory being zero'ed out. | 933 | * entire memory being zero'ed out. |
934 | */ | 934 | */ |
935 | #define GNUNET_is_zero(a) ({ \ | 935 | #define GNUNET_is_zero(a) ({ \ |
936 | const typeof(*a) _z = { 0 }; \ | 936 | static const typeof(*a) _z; \ |
937 | memcmp(a, \ | 937 | memcmp((a), \ |
938 | &_z, \ | 938 | &_z, \ |
939 | sizeof (_z)); }) | 939 | sizeof (_z)); }) |
940 | 940 | ||