Skip to content

Commit

Permalink
Suppress a warning on older GCCs
Browse files Browse the repository at this point in the history
  • Loading branch information
ned14 committed Feb 2, 2025
1 parent bb2264e commit 86070c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/llfio/v2.0/path_view.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ namespace detail
#ifdef _MSC_VER // MSVC's standard library refuses any basic_string_view<T> where T is not an unsigned type
using char8_t = unsigned char;
#else
#if defined(__GNUC__) && !defined(__clang__)
#if defined(__GNUC__) && !defined(__clang__) && __GNUC__ >= 12
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wc++20-compat"
#endif
Expand Down Expand Up @@ -147,7 +147,7 @@ namespace detail
{
return a.v != b.v;
}
#if defined(__GNUC__) && !defined(__clang__)
#if defined(__GNUC__) && !defined(__clang__) && __GNUC__ >= 12
#pragma GCC diagnostic pop
#endif
#endif
Expand Down

0 comments on commit 86070c4

Please sign in to comment.