In an xcode4.5 project I have turned on pedantic warnings. But this now gives me a warning about using #warning:
Lexical preprocessor issue
#warning is language extension
Firstly, I’d like to know why this is happening and how to stop it (with out removing the #warning).
The reason it’s being generated is because
#warningis an extension to the ISO standard and that is what-pedanticis about.It looks like only a
#pragmawill turn it off as no-Wno-xxxflags appear available for language extensions.