Commit 1d44debe authored by Peter Steinberger's avatar Peter Steinberger

Xcode 7.3 adds a warning if we print an Objective-C class as a pointer without...

Xcode 7.3 adds a warning if we print an Objective-C class as a pointer without an explicit cast. (-Wformat-pedantic)
parent f2e35572
......@@ -395,7 +395,7 @@ class ObjcGenerator(spec: Spec) extends Generator(spec) {
w.w("[NSString stringWithFormat:@\"<%@ %p")
for (f <- r.fields) w.w(s" ${idObjc.field(f.ident)}:%@")
w.w(">\", self.class, self")
w.w(">\", self.class, (void *)self")
for (f <- r.fields) {
w.w(", ")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment