Trying to find a way to disable pragma warnings

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.

Anyone know what I'm doing wrong?

Thanks!

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux