XCTest does not compile with Pedantic Warnings

Originator:talktodan
Number:rdar://15250741 Date Originated:17-Oct-2013
Status:Open Resolved:
Product:Developer Tools Product Version:
Classification: Reproducible:Always
 
Summary:
When an Xcode project target is set compile with pedantic warnings on (GCC_WARN_PEDANTIC = YES; ) then the project will generate warnings when trying to compile or use tests.

Steps to Reproduce:
(Sample Project attached to demonstrate the issue).

1. Create a new project with XCTest unit test
2. In Target settings -> Apple LLVM 5.0 - Warning Policies
3. Set Pedantic Warnings: Yes
4. Set Treat Warnings as Errors: Yes
5. Try to run the tests


Expected Results:
Projects can compile cleanly with these warning levels set.

Actual Results:
Warnings: Use of GNU statement expression extension
XCTestAssertionsImpl.h:37:46: Named variadic macros are a GNU extension


Version:
Version 5.0 (5A1412)

Notes:


Configuration:


Attachments:
'XCTestWarnings.zip' was successfully uploaded.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!