From 67f3aa9bbacf5b5a95d3f0693835104019f9b154 Mon Sep 17 00:00:00 2001 From: Richard Barnes Date: Thu, 23 May 2024 08:20:03 -0700 Subject: [PATCH] Fix deprecated dynamic exception in fboss/agent/hw/bcm/BcmError.h +5 Summary: X-link: https://github.com/facebookresearch/fbpcf/pull/539 LLVM has detected a violation of `-Wdeprecated-dynamic-exception-spec`. Dynamic exceptions were removed in C++17. This diff fixes the deprecated instance(s). See [Dynamic exception specification](https://en.cppreference.com/w/cpp/language/except_spec) and [noexcept specifier](https://en.cppreference.com/w/cpp/language/noexcept_spec). Reviewed By: palmje Differential Revision: D57636124 fbshipit-source-id: 90ff1837d7d7aa919ea19d380b638a04b7d19adf --- third-party/folly/src/folly/test/ExceptionWrapperTest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/third-party/folly/src/folly/test/ExceptionWrapperTest.cpp b/third-party/folly/src/folly/test/ExceptionWrapperTest.cpp index 9df3607d282083..07ac23a199e9c1 100644 --- a/third-party/folly/src/folly/test/ExceptionWrapperTest.cpp +++ b/third-party/folly/src/folly/test/ExceptionWrapperTest.cpp @@ -473,7 +473,7 @@ namespace { struct ThrownException {}; struct InSituException : std::exception { InSituException() = default; - InSituException(const InSituException&) throw() {} + InSituException(const InSituException&) noexcept {} }; struct OnHeapException : std::exception { OnHeapException() = default;