Skip to content

Commit 9f1f50a

Browse files
Mark is_steady as [[maybe_unused]].
Fixes error: unused variable 'is_steady' [-Werror,-Wunused-const-variable]
1 parent fd4b90b commit 9f1f50a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

libcxx/test/std/time/time.clock/time.clock.utc/types.compile.pass.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@
3636
#include "test_macros.h"
3737

3838
// class utc_clock
39-
using rep = std::chrono::utc_clock::rep;
40-
using period = std::chrono::utc_clock::period;
41-
using duration = std::chrono::utc_clock::duration;
42-
using time_point = std::chrono::utc_clock::time_point;
43-
constexpr bool is_steady = std::chrono::utc_clock::is_steady;
39+
using rep = std::chrono::utc_clock::rep;
40+
using period = std::chrono::utc_clock::period;
41+
using duration = std::chrono::utc_clock::duration;
42+
using time_point = std::chrono::utc_clock::time_point;
43+
[[maybe_unused]] constexpr bool is_steady = std::chrono::utc_clock::is_steady;
4444

4545
// Tests the values. Some of them are implementation-defined.
4646
LIBCPP_STATIC_ASSERT(std::same_as<rep, std::chrono::system_clock::rep>);

0 commit comments

Comments
 (0)