Skip to content

Commit

Permalink
tests/cpputest-client.cpp: use HAVE_PRAGMA_CLANG_DIAGNOSTIC_IGNORED_D…
Browse files Browse the repository at this point in the history
…EPRECATED_DECLARATIONS for new clang-19

Signed-off-by: Jim Klimov <[email protected]>
  • Loading branch information
jimklimov committed Jan 8, 2025
1 parent b372400 commit 870eca8
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions tests/cpputest-client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,10 @@
# pragma GCC diagnostic ignored "-Wold-style-cast"
# endif
#endif
#ifdef __clang__
# pragma clang diagnostic push "-Wdeprecated-declarations"
#if (defined __clang__) && (defined HAVE_PRAGMA_CLANG_DIAGNOSTIC_IGNORED_DEPRECATED_DECLARATIONS)
# ifdef HAVE_PRAGMA_CLANG_DIAGNOSTIC_IGNORED_DEPRECATED_DECLARATIONS
# pragma clang diagnostic push "-Wdeprecated-declarations"
# endif
#endif

#include <cppunit/extensions/HelperMacros.h>
Expand Down Expand Up @@ -500,7 +502,7 @@ void NutActiveClientTest::test_auth_primary() {

} // namespace nut {}

#ifdef __clang__
#if (defined __clang__) && (defined HAVE_PRAGMA_CLANG_DIAGNOSTIC_IGNORED_DEPRECATED_DECLARATIONS)
# pragma clang diagnostic pop
#endif
#if (defined HAVE_PRAGMA_GCC_DIAGNOSTIC_PUSH_POP) && (defined HAVE_PRAGMA_GCC_DIAGNOSTIC_IGNORED_EXIT_TIME_DESTRUCTORS || defined HAVE_PRAGMA_GCC_DIAGNOSTIC_IGNORED_GLOBAL_CONSTRUCTORS || defined HAVE_PRAGMA_GCC_DIAGNOSTIC_IGNORED_DEPRECATED_DECLARATIONS || defined HAVE_PRAGMA_GCC_DIAGNOSTIC_IGNORED_SUGGEST_OVERRIDE_BESIDEFUNC || defined HAVE_PRAGMA_GCC_DIAGNOSTIC_IGNORED_SUGGEST_DESTRUCTOR_OVERRIDE_BESIDEFUNC || defined HAVE_PRAGMA_GCC_DIAGNOSTIC_IGNORED_WEAK_VTABLES_BESIDEFUNC || defined HAVE_PRAGMA_GCC_DIAGNOSTIC_IGNORED_DEPRECATED_DYNAMIC_EXCEPTION_SPEC_BESIDEFUNC || defined HAVE_PRAGMA_GCC_DIAGNOSTIC_IGNORED_EXTRA_SEMI_BESIDEFUNC || defined HAVE_PRAGMA_GCC_DIAGNOSTIC_IGNORED_OLD_STYLE_CAST_BESIDEFUNC)
Expand Down

0 comments on commit 870eca8

Please sign in to comment.