Skip to content

Commit

Permalink
Merge pull request #1030 from keryell/SYCL-2020/issue-848
Browse files Browse the repository at this point in the history
Do not use C99 VLA in C++ code
  • Loading branch information
keryell authored Feb 1, 2025
2 parents f7a2659 + 9c26937 commit eb67a96
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/sub_group/sub_group_semantics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -120,10 +120,10 @@ TEST_CASE("sub_group by-value semantics", "[sub_group]") {
TEST_CASE("Check sycl::sub_group equality", "[sub_group]") {
size_t code_count =
to_integral(common_by_value_semantics::current_check::size);
bool result[code_count];
std::fill(result, result + code_count, false);
// Avoid the std::vector<bool>
std::vector<char> result(code_count, false);
{
sycl::buffer<bool, 1> res_buf(result, sycl::range(code_count));
sycl::buffer<char, 1> res_buf(result);
auto queue = once_per_unit::get_queue();
queue
.submit([&](sycl::handler& cgh) {
Expand Down

0 comments on commit eb67a96

Please sign in to comment.