[SOLVED] Warnings / #pragmas

This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

  • [SOLVED] Warnings / #pragmas

    Gday

    I failed in looking for informations on turning off individual warnings per solution, file or function
    I usually like to get all warnings, but some make no sense in this project

    normally, I'd expect sth like
    #pragma warning 4711:off (or "once")
    inside the source code

    and how to turn off a special warning for the entire solution while leaving the "all warnings" setting still turned on?

    obviously, I've been to the options dialogue
    solutions->options->compiler
    but did not succeed there

    I also failed in getting a general pragma overview
    sometimes, eg an output message inside the build process can be quite useful
    eg like
    #pragma message("debug code included")

    thanks in advance
    Uli
  • Hello Uli,

    Thank you for your inquiry.
    Generally this is possible. But the supported #pragma syntax is compiler dependant.
    The Embedded Studio compilers that are available are gcc or clang based.
    So we recommend to check the corresponding gcc or clang compile manuals for the correct syntax.

    Best regards,
    Nino
    Please read the forum rules before posting.

    Keep in mind, this is *not* a support forum.
    Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
    Should you be entitled to support you can contact us via our support system: segger.com/ticket/

    Or you can contact us via e-mail.