Browse Source

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.
pull/191/head
Vladimír Vondruš 8 years ago
parent
commit
ea47a6e8f7
  1. 3
      doc/snippets/MagnumAnimation.cpp

3
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<Float, Vector3> translation;
const Animation::TrackView<Float, Quaternion> rotation;
@ -86,6 +88,7 @@ player.addWithCallback(translation,
#pragma GCC diagnostic pop
#endif
}
#endif
{
/* [Player-usage-playback] */

Loading…
Cancel
Save