diff options
author | Patrick Williams <patrick@stwcx.xyz> | 2023-10-21 02:03:11 +0300 |
---|---|---|
committer | Ed Tanous <ed@tanous.net> | 2023-10-24 21:17:16 +0300 |
commit | 9d33a47c0bf544cba8557683f8c6d28aaf658355 (patch) | |
tree | a93f9a2bee5a68e193004a22b56cf79abd8876ef /redfish-core | |
parent | 5a39f77a17fa28911c87caea1e2903c059e7ec41 (diff) | |
download | bmcweb-9d33a47c0bf544cba8557683f8c6d28aaf658355.tar.xz |
utils: date: fix clang warning
```
../redfish-core/include/utils/extern/date.h:983:34: error: identifier '_d' preceded by whitespace in a literal operator declaration is deprecated [-Werror,-Wdeprecated-literal-operator]
983 | CONSTCD11 date::day operator "" _d(unsigned long long d) NOEXCEPT;
| ~~~~~~~~~~~~^~
| operator""_d
../redfish-core/include/utils/extern/date.h:984:34: error: identifier '_y' preceded by whitespace in a literal operator declaration is deprecated [-Werror,-Wdeprecated-literal-operator]
984 | CONSTCD11 date::year operator "" _y(unsigned long long y) NOEXCEPT;
| ~~~~~~~~~~~~^~
| operator""_y
```
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I2304818ddc498441f9ed2ede54c92b7f7c48b7c1
Diffstat (limited to 'redfish-core')
-rw-r--r-- | redfish-core/include/utils/extern/date.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/redfish-core/include/utils/extern/date.h b/redfish-core/include/utils/extern/date.h index 209e26774f..ebeaeb1f68 100644 --- a/redfish-core/include/utils/extern/date.h +++ b/redfish-core/include/utils/extern/date.h @@ -980,8 +980,8 @@ operator<<(std::basic_ostream<CharT, Traits>& os, const year_month_weekday_last& inline namespace literals { -CONSTCD11 date::day operator "" _d(unsigned long long d) NOEXCEPT; -CONSTCD11 date::year operator "" _y(unsigned long long y) NOEXCEPT; +CONSTCD11 date::day operator ""_d(unsigned long long d) NOEXCEPT; +CONSTCD11 date::year operator ""_y(unsigned long long y) NOEXCEPT; } // inline namespace literals #endif // !defined(_MSC_VER) || (_MSC_VER >= 1900) @@ -1989,7 +1989,7 @@ inline namespace literals CONSTCD11 inline date::day -operator "" _d(unsigned long long d) NOEXCEPT +operator ""_d(unsigned long long d) NOEXCEPT { return date::day{static_cast<unsigned>(d)}; } @@ -1997,7 +1997,7 @@ operator "" _d(unsigned long long d) NOEXCEPT CONSTCD11 inline date::year -operator "" _y(unsigned long long y) NOEXCEPT +operator ""_y(unsigned long long y) NOEXCEPT { return date::year(static_cast<int>(y)); } |