Fix deprecated dynamic exception in infra_asic_fpga/validation/freya/bmtc/ssp/src/gcc-arm-none-eabi-9-2019-q4-major/arm-none-eabi/include/c++/9.2.1/tr1/special_function_util.h +5

Summary:
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: dmm-fb

Differential Revision: D58953050

fbshipit-source-id: 8559dc925ea5ed0a6dbf938aa02ee810f01047ae
This commit is contained in:
Richard Barnes 2024-06-24 09:30:20 -07:00 committed by Facebook GitHub Bot
parent e90e9153d5
commit 5c391c7713
1 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@
#pragma once #pragma once
#if defined(__clang__) && defined(__GLIBC__) #if defined(__clang__) && defined(__GLIBC__)
// glibc's `posix_memalign()` declaration specifies `throw()` while clang's // glibc's `posix_memalign()` declaration specifies `noexcept` while clang's
// declaration does not. There is a hack in clang to make its re-declaration // declaration does not. There is a hack in clang to make its re-declaration
// compatible with glibc's if they are declared consecutively. That hack breaks // compatible with glibc's if they are declared consecutively. That hack breaks
// if yet another `posix_memalign()` declaration comes between glibc's and // if yet another `posix_memalign()` declaration comes between glibc's and
@ -14,7 +14,7 @@
// declarations both come before "jemalloc.h"'s `posix_memalign()` declaration. // declarations both come before "jemalloc.h"'s `posix_memalign()` declaration.
// //
// This problem could also be avoided if "jemalloc.h"'s `posix_memalign()` // This problem could also be avoided if "jemalloc.h"'s `posix_memalign()`
// declaration did not specify `throw()` when built with clang. // declaration did not specify `noexcept` when built with clang.
#include <mm_malloc.h> #include <mm_malloc.h>
#endif #endif