From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from cam-smtp0.cambridge.arm.com (cam-smtp0.cambridge.arm.com [217.140.106.51]) by mx.groups.io with SMTP id smtpd.web10.12290.1594110930891752424 for ; Tue, 07 Jul 2020 01:35:31 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: arm.com, ip: 217.140.106.51, mailfrom: pierre.gondois@arm.com) Received: from E119881.Arm.com (E119881.Arm.com [10.1.197.28]) by cam-smtp0.cambridge.arm.com (8.13.8/8.13.8) with ESMTP id 0678ZS5u018182; Tue, 7 Jul 2020 09:35:28 +0100 From: "PierreGondois" To: devel@edk2.groups.io Cc: Pierre Gondois , bob.c.feng@intel.com, liming.gao@intel.com, tomas.pilar@arm.com, nd@arm.com Subject: [PATCH V2 1/2] BaseTools: Add gcc flag to warn on void* pointer arithmetic Date: Tue, 7 Jul 2020 09:35:21 +0100 Message-Id: <20200707083522.138944-2-pierre.gondois@arm.com> X-Mailer: git-send-email 2.16.2.windows.1 In-Reply-To: <20200707083522.138944-1-pierre.gondois@arm.com> References: <20200707083522.138944-1-pierre.gondois@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: base64 RnJvbTogUGllcnJlIEdvbmRvaXMgPHBpZXJyZS5nb25kb2lzQGFybS5jb20+CgpCeSBkZWZhdWx0 LCBnY2MgYWxsb3dzIHZvaWQqIHBvaW50ZXIgYXJpdGhtZXRpYy4KVGhpcyBpcyBhIEdDQyBleHRl bnNpb24uCkhvd2V2ZXI6CiAtIHRoZSBDIHJlZmVyZW5jZSBtYW51YWwgc3RhdGVzIHRoYXQgdm9p ZCoKICAgcG9pbnRlciAiY2Fubm90IGJlIG9wZXJhbmRzIG9mIGFkZGl0aW9uCiAgIG9yIHN1YnRy YWN0aW9uIG9wZXJhdG9ycyIuIENmIHM1LjMuMQogICAiR2VuZXJpYyBQb2ludGVycyI7CiAtIFZp c3VhbCBzdHVkaW8gY29tcGlsZXIgdHJlYXQgc3VjaCBvcGVyYXRpb24gY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