Skip to content

Commit d1bb5cb

Browse files
committed
[fix][utils] Coverity: UNCAUGHT_EXCEPT checker, "Uncaught exception" type (#1231)
* `noexcept` specifier has been removed from `get_accels_info()` function. This is due to the following reasons: * the function may throw exceptions (from `std::map` constructor) * the function is called in a function `get_sys_info()` defined without `noexcept` specifier
1 parent e3836f5 commit d1bb5cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/utils/common/system_info.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ static uint32_t get_total_numa_nodes() {
154154
/*
155155
* @brief Structure to keep information about accelerators.
156156
*/
157-
static inline accel_info_t& get_accels_info() noexcept {
157+
static inline accel_info_t& get_accels_info() {
158158
static accel_info_t info;
159159

160160
#if defined(__linux__)

0 commit comments

Comments
 (0)