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:
1 parent
22aacb4008
commit
cf3e332abb
1 file changed
+7
@@ -23,7 +23,14 @@
|
||||
|
||||
#include <windows.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>
|
||||
#if defined(__GNUC__) && !defined(__clang__)
|
||||
# pragma GCC diagnostic pop
|
||||
#endif
|
||||
#include <winrt/Windows.Graphics.Imaging.h>
|
||||
#include <winrt/Windows.Media.h>
|
||||
#include <winrt/Windows.Storage.h>
|
||||
|
||||
Reference in new issue
Block a user