From ea47a6e8f74ba3707b57d631347801d449eda2ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Sat, 4 Aug 2018 22:57:01 +0200 Subject: [PATCH] doc: disable a problematic code snippet on WinRT. It has warnings-as-errors and thus doesn't like that one uninitialized object. I need the ELLIPSIS macro already. --- doc/snippets/MagnumAnimation.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/doc/snippets/MagnumAnimation.cpp b/doc/snippets/MagnumAnimation.cpp index 729f75b6f..e50381d88 100644 --- a/doc/snippets/MagnumAnimation.cpp +++ b/doc/snippets/MagnumAnimation.cpp @@ -49,6 +49,8 @@ player.add(scaling, objectScaling) /* [Player-usage] */ } +/* WinRT has warnings-as-errors and fails on the unitialized object var */ +#ifndef CORRADE_TARGET_WINDOWS_RT { const Animation::TrackView translation; const Animation::TrackView rotation; @@ -86,6 +88,7 @@ player.addWithCallback(translation, #pragma GCC diagnostic pop #endif } +#endif { /* [Player-usage-playback] */