Loading...
Searching...
No Matches
deprecated.hh
Go to the documentation of this file.
// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
// vi: set et ts=4 sw=2 sts=2:
// SPDX-FileCopyrightInfo: Copyright © DUNE Project contributors, see file LICENSE.md in module root
// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception
#ifndef DUNE_DEPRECATED_HH
#define DUNE_DEPRECATED_HH
#ifdef DOXYGEN
#define DUNE_NO_DEPRECATED_BEGIN ...
#define DUNE_NO_DEPRECATED_END ...
#else
# if defined __clang__
# define DUNE_NO_DEPRECATED_BEGIN \
_Pragma("clang diagnostic push") \
_Pragma("clang diagnostic ignored \"-Wdeprecated-declarations\"")
# define DUNE_NO_DEPRECATED_END _Pragma("clang diagnostic pop")
# elif defined __INTEL_COMPILER
# define DUNE_NO_DEPRECATED_BEGIN \
_Pragma("warning push") \
_Pragma("warning(disable:1478)") \
_Pragma("warning(disable:1786)")
# define DUNE_NO_DEPRECATED_END _Pragma("warning pop")
# elif defined __GNUC__
# define DUNE_NO_DEPRECATED_BEGIN \
_Pragma("GCC diagnostic push") \
_Pragma("GCC diagnostic ignored \"-Wdeprecated-declarations\"")
# define DUNE_NO_DEPRECATED_END _Pragma("GCC diagnostic pop")
# else
# define DUNE_NO_DEPRECATED_BEGIN /* Noop. */
# define DUNE_NO_DEPRECATED_END /* Noop. */
# endif
#endif
#endif