Warning on an unknown pragma is a good thing. It means you requested some specific behavior but the compiler couldn't do it. The pragmas should probably be conditionally used, but I don't know which ones gcc is complaining about. http://llvm-reviews.chandlerc.com/D240