AWF4vk
AWF4vk

Reputation: 5890

Disabling warning in Xcode4.2 for a specific file

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

Answers (1)

Gerald
Gerald

Reputation: 23479

If using Clang, which I believe is the default in 4.2, the "-w" flag should disable all warnings.

Upvotes: 6

Related Questions