Skip to content

Commit

Permalink
pdqsort: silence -Wunused-but-set-variable false positive
Browse files Browse the repository at this point in the history
  • Loading branch information
Morwenn committed Apr 11, 2022
1 parent a7a4463 commit a1202b8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/cpp-sort/detail/pdqsort.h
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2015-2021 Morwenn
* Copyright (c) 2015-2022 Morwenn
* SPDX-License-Identifier: MIT
*/

Expand Down Expand Up @@ -436,6 +436,7 @@ namespace detail
constexpr bool is_branchless =
utility::is_probably_branchless_comparison_v<Compare, projected_type> &&
utility::is_probably_branchless_projection_v<Projection, value_type>;
(void)is_branchless; // Silence a -Wunused-but-set-variable false positive

auto&& comp = utility::as_function(compare);
auto&& proj = utility::as_function(projection);
Expand Down

0 comments on commit a1202b8

Please sign in to comment.