If you want to avoid warnings related to pragmas, you should read the GCC documentation that describes the following flags:
-Wunknown-pragmas
-Wno-pragmas
These are documented in section 3.8 of the manual for GCC 4.4.1. The -W flags have a negative form that begins with ‘-Wno-‘. The -W flags described above are the non-default forms of the flags.
Depending on the pragmas you are using, you probably want to use the following flags to avoid warnings about pragmas:
-Wno-unknown-pragmas (this is the default)
-Wno-pragmas (this is NOT the default)
You may have to experiment with these flags to get the behavior that you want.