Browse Source

Primitives: use proper deprecation macro for an enum.

Causes a warning on older GCCs that don't support enum attributes yet.
pull/539/head
Vladimír Vondruš 4 years ago
parent
commit
27c65f7a78
  1. 2
      src/Magnum/Primitives/UVSphere.h

2
src/Magnum/Primitives/UVSphere.h

@ -92,7 +92,7 @@ MAGNUM_PRIMITIVES_EXPORT Trade::MeshData uvSphereSolid(UnsignedInt rings, Unsign
@brief Whether to generate UV sphere texture coordinates
@m_deprecated_since{2020,06} Use @ref UVSphereFlags instead.
*/
enum class CORRADE_DEPRECATED("use UVSphereFlags instead") UVSphereTextureCoords: UnsignedByte {
enum class CORRADE_DEPRECATED_ENUM("use UVSphereFlags instead") UVSphereTextureCoords: UnsignedByte {
DontGenerate, /**< Don't generate texture coordinates */
Generate /**< Generate texture coordinates */
};

Loading…
Cancel
Save