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.