Used type va_list (aka_builtin_va_list) where arithmetic or pointer type is required in BWDB.m file

北城以北 提交于 2019-12-07 12:37:05

问题


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.


回答1:


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



来源:https://stackoverflow.com/questions/22383846/used-type-va-list-aka-builtin-va-list-where-arithmetic-or-pointer-type-is-requ

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!