This is old clang
-------
Apple clang version 4.1 (tags/Apple/clang-421.11.66) (based on LLVM 3.1svn)
Target: x86_64-apple-darwin11.4.2
Thread model: posix
-------
Ok, I will do this temp workaround.
OvmfPkg, compiled with this clang works, if I exclude S3Save from its body ;)

Sergey

On 30.09.2014, at 16:34, Andrew Fish wrote:

> 
> On Sep 30, 2014, at 5:13 AM, Sergey Isakov <[email protected]> wrote:
> 
>> Hi sirs,
>> New problem
>> ------------
>> Building ... 
>> /Users/sergey/src/edk2/MdeModulePkg/Universal/Acpi/S3SaveStateDxe/S3SaveStateDxe.inf
>>  [X64]
>> /Users/sergey/src/edk2/MdeModulePkg/Universal/Acpi/S3SaveStateDxe/S3SaveState.c:216:33:
>>  error: second argument to 'va_arg' is of promotable type 'UINT16' (aka 
>> 'unsigned short'); this va_arg has undefined behavior because arguments will 
>> be promoted to 'int' [-Werror]
>>   Segment     = VA_ARG (Marker, UINT16);
>>                 ~~~~~~~~~~~~~~~~^~~~~~~
>> /Users/sergey/src/edk2/MdePkg/Include/Base.h:488:150: note: expanded from 
>> macro 'VA_ARG'
>> #define VA_ARG(Marker, TYPE)         ((sizeof (TYPE) < sizeof (UINTN)) ? 
>> (TYPE)(__builtin_va_arg (Marker, UINTN)) : (TYPE)(__builtin_va_arg (Marker, 
>> TYPE)))
>>                                                                              
>>                                                                         ^
> 
> Sergey,
> 
> What version of clang are you using? Can you try a newer version?
> 
> This is a diagnostic error in clang that has been fixed. The macro ensures 
> the promotion to ‘int’ so it should not warn. 
> 
> You can change UINT16 in VA_ARG() to UINTN as a temp work around.
> 
> Thanks,
> 
> Andrew Fish
> 
> 
>> 
>> ------------
>> The same in lines 244, 276 and 504.
>> Please consider.
>> 
>> Wishes,
>> Sergey
>> ------------------------------------------------------------------------------
>> Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
>> Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
>> Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
>> Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
>> http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk_______________________________________________
>> edk2-devel mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/edk2-devel
> 
> ------------------------------------------------------------------------------
> Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
> Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
> Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
> Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
> http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk_______________________________________________
> edk2-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/edk2-devel

------------------------------------------------------------------------------
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
_______________________________________________
edk2-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-devel

Reply via email to