The problem is that they use __declspec(dllexport) instead of __attribute__ ((dllexport)) in the MinGW parts of the includes, which is not MinGW syntax.
For compatibility's sake, MinGW treats __declspec(dllexport) as an alias for __attribute__ ((dllexport)), but in a few builds, it does not work correctly and produces that warning.