From 9dc04ad3c5b62d0018eae14dc177be2993dbcbd4 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 15 Dec 2022 12:12:47 -0500 Subject: Remove double size check entirely It turns out that, since this header is widely included in dependants, removing the conditional in the previous commit triggers undocumented warnings downstream. Since the check is pretty esoteric anyway, and has been widely included across most of the LV2 ecosystem for a decade and never once come up, I think it's safe to just delete this and be done with the hassle. --- include/lv2/atom/atom.h | 4 ---- 1 file changed, 4 deletions(-) (limited to 'include') diff --git a/include/lv2/atom/atom.h b/include/lv2/atom/atom.h index 59816e5..44f597a 100644 --- a/include/lv2/atom/atom.h +++ b/include/lv2/atom/atom.h @@ -62,10 +62,6 @@ extern "C" { #endif -// This expression will fail to compile if double does not fit in 64 bits -typedef char lv2_atom_assert_double_fits_in_64_bits - [((sizeof(double) <= sizeof(uint64_t)) * 2) - 1]; - /** Return a pointer to the contents of an Atom. The "contents" of an atom is the data past the complete type-specific header. -- cgit v1.2.1