From 27c65f7a7808db855333f845ad9b6ec605ed71a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Sun, 30 Jan 2022 17:45:03 +0100 Subject: [PATCH] Primitives: use proper deprecation macro for an enum. Causes a warning on older GCCs that don't support enum attributes yet. --- src/Magnum/Primitives/UVSphere.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Magnum/Primitives/UVSphere.h b/src/Magnum/Primitives/UVSphere.h index 04637342d..21391673f 100644 --- a/src/Magnum/Primitives/UVSphere.h +++ b/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 */ };