Please, protect differently #pragma use

  • In LCD.h file delivered with emWin, #pragma warning macros are used.

    I think they are valid only for Visual Studio compiler.

    However they are protected with #ifdef WIN32, but WIN32 macro is defined with mingw compiler as well. In this way, mingw compiler emits a warning about unknown #pragma.

    Please, protect #pragma warning with a more effective macro that checks the Visual Studio compiler and not a generic Windows OS.

  • Hi,

    Thank you very much for the hint. Will be considered in the future.

    Regards, Jörg

    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: https://www.segger.com/ticket/

    Or you can contact us via e-mail.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!