Tracktion / choc

A collection of header only classes, permissively licensed, to provide basic useful tasks with the bare-minimum of dependencies.
Other
543 stars 49 forks source link

Fix "‘auto’ deduced as ‘id’" Xcode warning #40

Closed geraintluff closed 10 months ago

geraintluff commented 10 months ago

I'm using Xcode 13.2.1, and I get a warning when auto is deduced as id. This is on by default in Clang.

This PR replaces auto with id in choc_WebView.h, and fixes these errors. This matches choc_MessageLoop.h, which is the only other place call<id> is used to initialise a variable.

Screenshot 2024-01-28 at 13 32 17
geraintluff commented 10 months ago

Ah - sorry, I'd read the README section but not CONTRIBUTING.md.

I've re-opened as bug report #41.