On 06/20/17 21:52, Ard Biesheuvel wrote: > On 20 June 2017 at 17:44, Laszlo Ersek <[email protected]> wrote:
>> Perhaps we should introduce two macros to "MdePkg/Include/Base.h", >> >> #define UNUSED_POINTER NULL >> #define UNUSED_INTEGER 0 >> >> These could be used to suppress such warnings, without the risk of >> misleading programmers (as to the real necessity of the variable >> assignment at hand). >> > > Or perhaps > > #ifdef __GNUC__ > #define USED(var) var = (typeof(var))0 > #else > #define USED(var) > #endif > Sure, why not :) _______________________________________________ edk2-devel mailing list [email protected] https://lists.01.org/mailman/listinfo/edk2-devel

