Reputation: 5890
I'm using SQLite3 in my app, and the standard .c file gives me 13 warnings Implicit conversion loses integer precision: 'ssize_t' (aka 'long') to 'int'
I'm trying to get rid of it, so I went to build phases, selected sqlite3.c, and added the compiler flag: -Wno-shorten-64-to-32 per In Xcode, how to suppress all warnings in specific source files?'s recommendation. But this doesn't work. I still get those warnings.
How do I disable all warnings for the sqlite3.c file?
Upvotes: 1
Views: 2273
Reputation: 23479
If using Clang, which I believe is the default in 4.2, the "-w" flag should disable all warnings.
Upvotes: 6