I am writing a C++ program that uses Boost, using XCode 4.1 as IDE and compiler front-end. I get quite a lot of warnings in various Boost headers, and I would like to disable all warnings for those headers (but still enable them for my own project). Is there an easy way to do so?

I have found a decent workaround, based on what @Georg Fritzsche suggested:
I have added the various incriminated boost headers to the .pch file (the pre-compiled header), and wrapped them around a
#pragma push–#pragma popblock, like this:This works perfectly, and it’s not as annoying as having to surround the boost headers with
#pragmain each .cpp file, as I feared.