Disabling the static analyzer on a specific file does not work

Originator:dieter.komendera
Number:rdar://18907351 Date Originated:07-Nov-2014
Status:Closed Resolved:
Product:Developer Tools Product Version:6.1 (6A1052c)
Classification: Reproducible:Always
 
Summary:
This is a duplicate of rdar://18020732

When using these compiler flags "-w -Xanalyzer -analyzer-disable-checker" to disable the static analyzer on a specific file, Xcode will emit errors when you try to build your project.

We're also affected by this bug.

See rdar://18020732 for a demo project

Steps to Reproduce:


Expected Results:


Actual Results:


Version:
Xcode Version 6.1 (6A1052c)
Mac OS 10.10.1 (14B17)

Notes:


Configuration:


Attachments:

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!