Hundreds of GCC issues in Xcode.

So I had just installed the Cocos2d-X templates and ran the HelloWorld program. However, over 300 issues were found. Most of them say “Type qualifiers ignored on function return type.” How can I fix this?