This is an automated email from the ASF dual-hosted git repository. bennoe pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/mesos.git
commit 9d9d97c607359f5d2df95f6ef955054d80d130d1 Author: Benno Evers <[email protected]> AuthorDate: Tue Jan 7 13:30:58 2020 +0100 Added support for deprecated attribute to stout. Added support for the [[deprecated]] attribute to stout. Review: https://reviews.apache.org/r/71960/ --- 3rdparty/stout/include/stout/attributes.hpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/3rdparty/stout/include/stout/attributes.hpp b/3rdparty/stout/include/stout/attributes.hpp index a02ee79..54d438d 100644 --- a/3rdparty/stout/include/stout/attributes.hpp +++ b/3rdparty/stout/include/stout/attributes.hpp @@ -19,6 +19,7 @@ # define STOUT_HAS_CPP_ATTRIBUTE(x) 0 #endif + // We unconditionally require compiler support for `noreturn`, // both for legacy reasons and because the presence of this // attribute might affect code generation. @@ -30,13 +31,23 @@ # define STOUT_NORETURN __attribute__((noreturn)) #endif + // Non-namespaced version for backwards compatibility. #define NORETURN STOUT_NORETURN + #if STOUT_HAS_CPP_ATTRIBUTE(nodiscard) > 0 # define STOUT_NODISCARD [[nodiscard]] #else # define STOUT_NODISCARD #endif + +#if STOUT_HAS_CPP_ATTRIBUTE(deprecated) > 0 +# define STOUT_DEPRECATED [[deprecated]] +#else +# define STOUT_DEPRECATED +#endif + + #endif // __STOUT_ATTRIBUTES_HPP__
