Ever since I started to do 64-bit development, I had a problem with the Boost headers producing a ton of implicit conversion warnings in Xcode.
This is due to the fact that I am compiling with the following flag:
I got this idea from both Herb Sutter and the Viva 64 website, where you should be compiling cleanly with the highest warning level turned on.
Well, with that warning turned on, I was getting well over 1000 warnings with the same message:
I let this go for a while because Xcode doesn’t support the warning suppression flag available in GCC and I really don’t have too much control over the files that were causing the warning.
Well, I finally had to fix the problem: the continuous build system I’m using was spitting out a ton of warnings from some projects and finding the errors in a sea of warnings was making me miss the important stuff.
By accident, it dawned on me that warnings in system headers are ignored, so, it would seem logical to have the boost headers included with the system header search path:
I saw a lot of other posts where people complained about this same issue, but no one had a solution to this.
So far, this is working for me, and hopefully, this will work for you too if you have this problem.