Skip to content

Commit

Permalink
fix -Wextra-semi warnings
Browse files Browse the repository at this point in the history
llvm-svn: 353650
  • Loading branch information
EricWF committed Feb 10, 2019
1 parent 9d487c7 commit e8adbae
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions libcxx/include/chrono
Original file line number Diff line number Diff line change
Expand Up @@ -1749,14 +1749,14 @@ public:
year() = default;
explicit inline constexpr year(int __val) noexcept : __y(static_cast<short>(__val)) {}

inline constexpr year& operator++() noexcept { ++__y; return *this; };
inline constexpr year operator++(int) noexcept { year __tmp = *this; ++(*this); return __tmp; };
inline constexpr year& operator--() noexcept { --__y; return *this; };
inline constexpr year operator--(int) noexcept { year __tmp = *this; --(*this); return __tmp; };
inline constexpr year& operator++() noexcept { ++__y; return *this; }
inline constexpr year operator++(int) noexcept { year __tmp = *this; ++(*this); return __tmp; }
inline constexpr year& operator--() noexcept { --__y; return *this; }
inline constexpr year operator--(int) noexcept { year __tmp = *this; --(*this); return __tmp; }
constexpr year& operator+=(const years& __dy) noexcept;
constexpr year& operator-=(const years& __dy) noexcept;
inline constexpr year operator+() const noexcept { return *this; }
inline constexpr year operator-() const noexcept { return year{-__y}; };
inline constexpr year operator-() const noexcept { return year{-__y}; }

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

0 comments on commit e8adbae

Please sign in to comment.