Skip to content

Commit

Permalink
Disable warning
Browse files Browse the repository at this point in the history
  • Loading branch information
aelovikov-intel committed Jan 10, 2024
1 parent b9ab29d commit 5ef5121
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions sycl/source/builtins/relational_functions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,15 @@ REL_BUILTIN_CUSTOM(TWO_ARGS, isunordered,
// https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112816
#pragma GCC push_options
#pragma GCC optimize("-O2")
// sycl::vec has UB in operator[] (aliasing violation) that causes the following
// warning here.
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
#endif
REL_BUILTIN(ONE_ARG, signbit)
#ifdef __GNUC__
#pragma GCC pop_options
#pragma GCC diagnostic pop
#endif

HOST_IMPL(bitselect, [](auto x, auto y, auto z) {
Expand Down

0 comments on commit 5ef5121

Please sign in to comment.