Compiler doesn't think foo() and foo(void) are the same type
| Originator: | an00na | ||
| Number: | rdar://32661538 | Date Originated: | June 8 2017, 6:14 PM |
| Status: | DUPLICATE OF 32662741 OPEN | Resolved: | |
| Product: | Developer Tools | Product Version: | 9.0 beta (9M136h) |
| Classification: | Other Bug | Reproducible: | Always |
Summary: The Fix of the new "This function declaration is not a prototype" warning in Xcode 9 Inserts 'void' into empty function parameter list. But for delegate methods offered by the system SDK the compiler then reports another warning of "Conflicting parameter types" because the method declarations in protocol don't have 'void' and the compiler doesn't think foo() and foo(void) are the same thing. Steps to Reproduce: 1. Compile sample app. 2. Following the Fix. 3. See the new warning. Code: https://cloudup.com/c3duAbKKb90
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!