Actions
Improvements #13661
openEliminate some deprecated warnings in Wt/Date when building with Clang 20.1
Status:
New
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
03/19/2025
Due date:
% Done:
0%
Estimated time:
Description
Current version of Clang 20.1 generates several deprecated warnings in ./include/Wt/Date/include/date/date.h
when compiling with Wt.
These can be fixed easily by just removing the particular whitespaces - see patch attached.
In file included from D:/Dev/WebLibs/wt-lib-64/include/Wt/Date/include/date/tz.h:99:
D:/Dev/WebLibs/wt-lib-64/include/Wt/Date/include/date/date.h:966:34: warning: identifier '_d' preceded by whitespace in a literal operator declaration is deprecated [-Wdeprecated-literal-operator]
966 | CONSTCD11 date::day operator "" _d(unsigned long long d) NOEXCEPT;
| ~~~~~~~~~~~~^~
| operator""_d
D:/Dev/WebLibs/wt-lib-64/include/Wt/Date/include/date/date.h:967:34: warning: identifier '_y' preceded by whitespace in a literal operator declaration is deprecated [-Wdeprecated-literal-operator]
967 | CONSTCD11 date::year operator "" _y(unsigned long long y) NOEXCEPT;
| ~~~~~~~~~~~~^~
| operator""_y
D:/Dev/WebLibs/wt-lib-64/include/Wt/Date/include/date/date.h:1975:13: warning: identifier '_d' preceded by whitespace in a literal operator declaration is deprecated [-Wdeprecated-literal-operator]
1975 | operator "" _d(unsigned long long d) NOEXCEPT
| ~~~~~~~~~~~~^~
| operator""_d
D:/Dev/WebLibs/wt-lib-64/include/Wt/Date/include/date/date.h:1983:13: warning: identifier '_y' preceded by whitespace in a literal operator declaration is deprecated [-Wdeprecated-literal-operator]
1983 | operator "" _y(unsigned long long y) NOEXCEPT
| ~~~~~~~~~~~~^~
| operator""_y
Thanks!
Stefan
Files
No data to display
Actions