From b8ae18509971350e73d3e17ac3a9144f17a15e4a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Sun, 4 Sep 2016 00:12:47 +0200 Subject: [PATCH] Properly mark all deprecated APIs. Thanks also for this, KDevelop 5! --- src/Magnum/DebugOutput.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Magnum/DebugOutput.h b/src/Magnum/DebugOutput.h index aa16b0c77..f4724d14f 100644 --- a/src/Magnum/DebugOutput.h +++ b/src/Magnum/DebugOutput.h @@ -480,17 +480,17 @@ class MAGNUM_EXPORT DebugMessage { /** @copydoc DebugOutput::Source::Api * @deprecated Use @ref DebugOutput::Source::Api instead. */ - Api = GLenum(DebugOutput::Source::Api), + Api CORRADE_DEPRECATED_ENUM("use DebugOutput::Source::Api instead") = GLenum(DebugOutput::Source::Api), /** @copydoc DebugOutput::Source::WindowSystem * @deprecated Use @ref DebugOutput::Source::WindowSystem instead. */ - WindowSystem = GLenum(DebugOutput::Source::WindowSystem), + WindowSystem CORRADE_DEPRECATED_ENUM("use DebugOutput::Source::WindowSystem instead") = GLenum(DebugOutput::Source::WindowSystem), /** @copydoc DebugOutput::Source::ShaderCompiler * @deprecated Use @ref DebugOutput::Source::ShaderCompiler instead. */ - ShaderCompiler = GLenum(DebugOutput::Source::ShaderCompiler), + ShaderCompiler CORRADE_DEPRECATED_ENUM("use DebugOutput::Source::ShaderCompiler instead") = GLenum(DebugOutput::Source::ShaderCompiler), #endif /** External debugger or third-party middleware */ @@ -511,7 +511,7 @@ class MAGNUM_EXPORT DebugMessage { /** @copydoc DebugOutput::Source::Other * @deprecated Use @ref DebugOutput::Source::Other instead. */ - Other = GLenum(DebugOutput::Source::Other) + Other CORRADE_DEPRECATED_ENUM("use DebugOutput::Source::Other instead") = GLenum(DebugOutput::Source::Other) #endif }; @@ -581,7 +581,7 @@ class MAGNUM_EXPORT DebugMessage { * @deprecated Use @ref DebugOutput::Callback instead. */ /* Can't mark this as deprecated because compiler then complains when I use it as a parameter in setCallback() */ - typedef void(*Callback)(DebugMessage::Source, DebugMessage::Type, UnsignedInt, DebugOutput::Severity, const std::string&, const void*); + typedef CORRADE_DEPRECATED("use DebugOutput::Callback instead") void(*Callback)(DebugMessage::Source, DebugMessage::Type, UnsignedInt, DebugOutput::Severity, const std::string&, const void*); /** @copybrief DebugOutput::maxLoggedMessages() * @deprecated Use @ref DebugOutput::maxLoggedMessages() instead.