Skip to content

Commit 94c563c

Browse files
committed
Fix build
1 parent ba9ecbc commit 94c563c

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

util/sycl_exceptions.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,14 +58,10 @@ std::string stringify_sycl_exception(const sycl::exception& e) {
5858
// Using reference to avoid object slicing
5959
const auto& code = e.code();
6060

61-
#if SYCL_CTS_SUPPORT_HAS_ERRC_ENUM == 0
62-
append_cstr("code", "errc enum not supported by implementation");
63-
#else
6461
using CodeStringMakerT = Catch::StringMaker<sycl::errc>;
6562
const auto& errc_value = static_cast<sycl::errc>(code.value());
6663

6764
append_str("code", CodeStringMakerT::convert(errc_value));
68-
#endif // SYCL_CTS_SUPPORT_HAS_ERRC_ENUM
6965

7066
append_str("code raw value", std::to_string(code.value()));
7167
append_str("code message", code.message());

util/sycl_exceptions.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@ class matcher_exception_category : public Catch::Matchers::MatcherGenericBase {
9595
const std::error_category& m_category;
9696
};
9797

98-
#if SYCL_CTS_SUPPORT_HAS_ERRC_ENUM == 1
9998
/**
10099
* Matcher for sycl::errc error codes
101100
* C++ provides semantic match for std::error_code by operator==, still SYCL
@@ -132,7 +131,6 @@ struct matcher_equals_exception
132131
private:
133132
const sycl::errc& m_code_value;
134133
};
135-
#endif // SYCL_CTS_SUPPORT_HAS_ERRC_ENUM
136134

137135
} // namespace detail
138136

@@ -148,7 +146,6 @@ inline auto has_exception_category(const std::error_category& category) {
148146
return detail::matcher_exception_category(category);
149147
}
150148

151-
#if SYCL_CTS_SUPPORT_HAS_ERRC_ENUM == 1
152149
/**
153150
* Provides matcher for sycl::errc error codes with sycl_category check
154151
*
@@ -160,7 +157,6 @@ inline auto has_exception_category(const std::error_category& category) {
160157
inline auto equals_exception(const sycl::errc& code) {
161158
return detail::matcher_equals_exception(code);
162159
}
163-
#endif // SYCL_CTS_SUPPORT_HAS_ERRC_ENUM == 1
164160

165161
} // namespace sycl_cts::util
166162

0 commit comments

Comments
 (0)