From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: mx.groups.io; dkim=pass header.i=@protonmail.com header.s=default header.b=yeytWdDz; spf=pass (domain: protonmail.com, ip: 185.70.40.22, mailfrom: vit9696@protonmail.com) Received: from mail2.protonmail.ch (mail2.protonmail.ch [185.70.40.22]) by groups.io with SMTP; Fri, 16 Aug 2019 16:58:17 -0700 Date: Fri, 16 Aug 2019 23:58:12 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=default; t=1565999894; bh=L0j2BkXaau6Jh8HLK/XfdwelUxyQNKhPSc/sSQvMLxU=; h=Date:To:From:Reply-To:Subject:In-Reply-To:References:Feedback-ID: From; b=yeytWdDzs25pLJm6uza4woCrItnIcS7NY3LDR2w6Q7TGEZ0LbrzuYJOyddoYVpsBB wUNCfNHvlNwS1LDimZ6Sp+iOdL+yWAp6YCvr+/uKUUgIushpSXrnz5HuU7H2rjruqO boxnsKy39o2H6uP+tsudaz5p1uCz2rHiL4oaA8Ew= To: devel@edk2.groups.io From: "Vitaly Cheptsov" Reply-To: Vitaly Cheptsov Subject: [PATCH v1 3/3] MdePkg: Drop VERIFY_SIZE_OF in favour of STATIC_ASSERT Message-ID: <20190816235808.16019-4-vit9696@protonmail.com> In-Reply-To: <20190816235808.16019-1-vit9696@protonmail.com> References: <20190816235808.16019-1-vit9696@protonmail.com> Feedback-ID: p9QuX-L1wMgUm6nrSvNrf8juLupNs0VSnzXGVXuYDxlEahFdWtaedWDMB9zpwGDklGt7kzs1-RBc0cqz327Gcg==:Ext:ProtonMail MIME-Version: 1.0 X-Spam-Status: No, score=-0.7 required=7.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,FREEMAIL_REPLYTO_END_DIGIT autolearn=no autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mail.protonmail.ch X-Groupsio-MsgNum: 45872 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg=pgp-sha256; boundary="---------------------99320a3d71239c5ce2678235a3f2f212"; charset=UTF-8 -----------------------99320a3d71239c5ce2678235a3f2f212 Content-Transfer-Encoding: quoted-printable Date: Sat, 17 Aug 2019 02:58:08 +0300 From: Vitaly Cheptsov In-Reply-To: <20190816235808.16019-1-vit9696@protonmail.com> Message-Id: <20190816235808.16019-4-vit9696@protonmail.com> Mime-Version: 1.0 References: <20190816235808.16019-1-vit9696@protonmail.com> Subject: [PATCH v1 3/3] MdePkg: Drop VERIFY_SIZE_OF in favour of STATIC_ASSERT To: devel@edk2.groups.io X-Mailer: git-send-email 2.20.1 (Apple Git-117) REF:https://bugzilla.tianocore.org/show_bug.cgi?id=3D2048 New STATIC_ASSERT macro supersedes VERIFY_SIZE_OF as being more functional. Signed-off-by: Vitaly Cheptsov --- MdePkg/Include/Base.h | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/MdePkg/Include/Base.h b/MdePkg/Include/Base.h index d871422cd6..ed85b98318 100644 --- a/MdePkg/Include/Base.h +++ b/MdePkg/Include/Base.h @@ -28,19 +28,6 @@ SPDX-License-Identifier: BSD-2-Clause-Patent #pragma warning ( disable : 4200 ) #endif =20 -/** - Verifies the storage size of a given data type. - - This macro generates a divide by zero error or a zero size array declara= tion in - the preprocessor if the size is incorrect. These are declared as "exter= n" so - the space for these arrays will not be in the modules. - - @param TYPE The date type to determine the size of. - @param Size The expected size for the TYPE. - -**/ -#define VERIFY_SIZE_OF(TYPE, Size) extern UINT8 _VerifySizeof##TYPE[(sizeo= f(TYPE) =3D=3D (Size)) / (sizeof(TYPE) =3D=3D (Size))] - // // The Microsoft* C compiler can removed references to unreferenced data i= tems // if the /OPT:REF linker option is used. We defined a macro as this is a --=20 2.20.1 (Apple Git-117) -----------------------99320a3d71239c5ce2678235a3f2f212 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: ProtonMail wsBmBAEBCAAQBQJdV0MUCRBPsoxt7Hy0xQAKCRBPsoxt7Hy0xf0xCABy+R4D hfIQ5qldyrcCjaSXuvT56PTofCckoab5rwJEjZA2+hP6j+j993OBRg/4IY7S sTjiSNUiGyfJI9M9tyYwkhMBHKBvVDcusBAZjYKJVGZvUJwzajhay5zjeQqE 2/Vz6yI9BvdXKWRn5iUk8fnIQAVs1SvT2gwO/COAoUehp9FBmKX57y6MB/4N WG/CuUfIXPUvHud/988TEmaOhIdCdizILlf5S9o7PrNO/96tO9D+ddIoHJ6h GlShCzjsJcJhh+dsJFjyb5HDX+6yJnMOCAUwFTFrh/SO6mWDSNVwz4X3X/kg NarC7XfB+G5oYqy26ykkNs31X3UNIKQSKAaX =0H+8 -----END PGP SIGNATURE----- -----------------------99320a3d71239c5ce2678235a3f2f212--