Used type va_list (aka_builtin_va_list) where arit

2019-05-14 08:12发布

I get this error and I'm unable to run the program due to this segment of code...

    // build the query
NSString * query = [NSString stringWithFormat:@"update %@ set %@ = ? where id = ?",
                    tableName,
                    [[record allKeys] componentsJoinedByString:@" = ?, "]];
[self bindSQL:[query UTF8String] withVargs:(va_list)dValues.mutableBytes];
sqlite3_step(statement);
sqlite3_finalize(statement);

}

I'm using Bill Weinman's sqlite3 code - BWDB.m - the full code can be found here (http://bw.org/iosdata/). I Noticed this error after updating to Xcode 5.1. I search around but couldn't find any thing helpful. I would appreciate any suggestions.

标签: xcode5
1条回答
做个烂人
2楼-- · 2019-05-14 08:36

A similar question was answered here:

fake va_list in ARC

As to the library, you'd better migrate to:

https://github.com/ccgus/fmdb

查看更多
登录 后发表回答