Jacob Brown <god@xxxxxxxxxxxxxxxx> writes: > I'm compile a project that uses -Wall, and it has a lot of warnings >>From #pragmas caused by -Wunknown-pragmas. So I've tried to disable > this by adding the pragama, > #pragma GCC diagnostic ignored "-Wunknown-pragmas" > This doesn't seem to work. I've also tried adding -Wno-pragmas both > before and after -Wall on the command line CXX flags. The #pragma works for me. What version of gcc are you using? On the command line you probably want to use -Wno-unknown-pragmas. Ian