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 | e8adbae00a3e78795a653dadb58425cb89050e4c (patch) | |
| tree | ecc8aa2db317d7a9e751cf86a0ce501034ea9f82 /libcxx/include/chrono | |
| parent | 9d487c7d1eaf4c4dc6e1f4272a1f179e63e0ffc5 (diff) | |
| download | bcm5719-llvm-e8adbae00a3e78795a653dadb58425cb89050e4c.tar.gz bcm5719-llvm-e8adbae00a3e78795a653dadb58425cb89050e4c.zip | |
fix -Wextra-semi warnings
llvm-svn: 353650
Diffstat (limited to 'libcxx/include/chrono')
| -rw-r--r-- | libcxx/include/chrono | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libcxx/include/chrono b/libcxx/include/chrono index f7970647e57..a003751ba3b 100644 --- a/libcxx/include/chrono +++ b/libcxx/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; } |

