osdep/win32/smtc: workaround GCC 15 bogus template warning

Drop it to warning, even if -Werror is in effect. Interesting part is
that this makes this warning disappear completely. GCC diagnostics at
its finest.
This commit is contained in:
Kacper Michajłow committed 2025-04-28 15:54:12 +02:00
1 parent 22aacb4008
commit cf3e332abb
1 file changed
+7
+7
View File
@@ -23,7 +23,14 @@
#include <windows.h> #include <windows.h>
#include <systemmediatransportcontrolsinterop.h> #include <systemmediatransportcontrolsinterop.h>
#if defined(__GNUC__) && !defined(__clang__)
# pragma GCC diagnostic push
# pragma GCC diagnostic warning "-Wtemplate-body"
#endif
#include <winrt/Windows.Foundation.h> #include <winrt/Windows.Foundation.h>
#if defined(__GNUC__) && !defined(__clang__)
# pragma GCC diagnostic pop
#endif
#include <winrt/Windows.Graphics.Imaging.h> #include <winrt/Windows.Graphics.Imaging.h>
#include <winrt/Windows.Media.h> #include <winrt/Windows.Media.h>
#include <winrt/Windows.Storage.h> #include <winrt/Windows.Storage.h>