diff options
author | Eric Fiselier <eric@efcs.ca> | 2019-02-10 18:29:00 +0000 |
---|---|---|
committer | Eric Fiselier <eric@efcs.ca> | 2019-02-10 18:29:00 +0000 |
commit | d47c19a05535a05aea8d322ed2e4be79c1a2b749 (patch) | |
tree | 5a055c3b4b4cb9acf62b39a2b1fd643ae3fa6375 | |
parent | bc415828dfa2a4f6b3805e65498a2cd58adc4852 (diff) | |
download | libcxx-d47c19a05535a05aea8d322ed2e4be79c1a2b749.tar.gz |
fix -Wextra-semi warnings
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@353650 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/chrono | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/include/chrono b/include/chrono index f7970647e..a003751ba 100644 --- a/include/chrono +++ b/include/chrono @@ -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; } |