Skip to content

Commit e8adbae

Browse files
committed
fix -Wextra-semi warnings
llvm-svn: 353650
1 parent 9d487c7 commit e8adbae

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

libcxx/include/chrono

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1749,14 +1749,14 @@ public:
17491749
year() = default;
17501750
explicit inline constexpr year(int __val) noexcept : __y(static_cast<short>(__val)) {}
17511751

1752-
inline constexpr year& operator++() noexcept { ++__y; return *this; };
1753-
inline constexpr year operator++(int) noexcept { year __tmp = *this; ++(*this); return __tmp; };
1754-
inline constexpr year& operator--() noexcept { --__y; return *this; };
1755-
inline constexpr year operator--(int) noexcept { year __tmp = *this; --(*this); return __tmp; };
1752+
inline constexpr year& operator++() noexcept { ++__y; return *this; }
1753+
inline constexpr year operator++(int) noexcept { year __tmp = *this; ++(*this); return __tmp; }
1754+
inline constexpr year& operator--() noexcept { --__y; return *this; }
1755+
inline constexpr year operator--(int) noexcept { year __tmp = *this; --(*this); return __tmp; }
17561756
constexpr year& operator+=(const years& __dy) noexcept;
17571757
constexpr year& operator-=(const years& __dy) noexcept;
17581758
inline constexpr year operator+() const noexcept { return *this; }
1759-
inline constexpr year operator-() const noexcept { return year{-__y}; };
1759+
inline constexpr year operator-() const noexcept { return year{-__y}; }
17601760

17611761
inline constexpr bool is_leap() const noexcept { return __y % 4 == 0 && (__y % 100 != 0 || __y % 400 == 0); }
17621762
explicit inline constexpr operator int() const noexcept { return __y; }

0 commit comments

Comments
 (0)