PDA

View Full Version : #pragma diagnostic doesn't work



cb951303
March 30th, 2009, 04:33 PM
I need to work with a code full of this warning


warning: "/*" within comment

I don't want to clean all the comments (laziness) so I tried this


#pragma GCC diagnostic ignored "-Wcomment"

but it doesn't seem to turn of those warnings. Am I misinformed or is this a bug?

Thank you

cb951303
April 1st, 2009, 09:47 AM
I don't know why it didn't work but a simple -Wno-comment flag to the compiler line works okay.