1

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?

Community
  • 1
  • 1
AWF4vk
  • 5,810
  • 3
  • 37
  • 70

1 Answers1

6

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

Gerald
  • 23,011
  • 10
  • 73
  • 102
  • Nope, it doesn't disable them. They still show up like a crazy ex. – AWF4vk Dec 21 '11 at 03:25
  • @David Make sure you're using a lowercase w. I just tested it with sqlite3.c using both Clang and GCC in 4.2 and it suppresses all of the warnings for me. – Gerald Dec 21 '11 at 03:42
  • yep, using lowercase -w. Selected in Build Phases under compiler flags. – AWF4vk Dec 21 '11 at 03:43
  • Durrrr. You're right. I had another target that wasn't set with -w which was giving the error. Thanks! – AWF4vk Dec 21 '11 at 03:44