Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
F
fmt
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
fmt
Commits
674999c5
Commit
674999c5
authored
Sep 30, 2018
by
Steven Hoving
Committed by
Victor Zverovich
Sep 30, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix vs2017 warning fmt::v5::localtime 'not all control paths return a value'.
parent
e4fea22d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
include/fmt/time.h
include/fmt/time.h
+2
-0
No files found.
include/fmt/time.h
View file @
674999c5
...
...
@@ -58,6 +58,7 @@ inline std::tm localtime(std::time_t time) {
return
lt
.
tm_
;
// Too big time values may be unsupported.
FMT_THROW
(
format_error
(
"time_t value out of range"
));
return
{};
}
// Thread-safe replacement for std::gmtime
...
...
@@ -93,6 +94,7 @@ inline std::tm gmtime(std::time_t time) {
return
gt
.
tm_
;
// Too big time values may be unsupported.
FMT_THROW
(
format_error
(
"time_t value out of range"
));
return
{};
}
namespace
internal
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment