How do I avoid warnings about #pragma when compiling?

This topic contains 1 reply, has 1 voice, and was last updated by  ChrisImgtec 3 years, 11 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #31558

    ChrisImgtec
    Moderator

    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.

    #38248

    ChrisImgtec
    Moderator

    Imagination MIPS Support

Viewing 2 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic.