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
5b491773
Commit
5b491773
authored
Feb 16, 2018
by
Lars Gullik Bjønnes
Committed by
Victor Zverovich
Feb 24, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test: Initialize some local variables
GCC 7.3 complains about uninitialized varaibles in constexpr context.
parent
f45f70af
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
test/format-test.cc
test/format-test.cc
+2
-2
No files found.
test/format-test.cc
View file @
5b491773
...
@@ -1779,7 +1779,7 @@ struct test_context {
...
@@ -1779,7 +1779,7 @@ struct test_context {
FMT_CONSTEXPR
fmt
::
format_specs
parse_specs
(
const
char
*
s
)
{
FMT_CONSTEXPR
fmt
::
format_specs
parse_specs
(
const
char
*
s
)
{
fmt
::
format_specs
specs
;
fmt
::
format_specs
specs
;
test_context
ctx
;
test_context
ctx
{}
;
fmt
::
internal
::
specs_handler
<
test_context
>
h
(
specs
,
ctx
);
fmt
::
internal
::
specs_handler
<
test_context
>
h
(
specs
,
ctx
);
parse_format_specs
(
s
,
h
);
parse_format_specs
(
s
,
h
);
return
specs
;
return
specs
;
...
@@ -1805,7 +1805,7 @@ TEST(FormatTest, ConstexprSpecsHandler) {
...
@@ -1805,7 +1805,7 @@ TEST(FormatTest, ConstexprSpecsHandler) {
FMT_CONSTEXPR
fmt
::
internal
::
dynamic_format_specs
<
char
>
FMT_CONSTEXPR
fmt
::
internal
::
dynamic_format_specs
<
char
>
parse_dynamic_specs
(
const
char
*
s
)
{
parse_dynamic_specs
(
const
char
*
s
)
{
fmt
::
internal
::
dynamic_format_specs
<
char
>
specs
;
fmt
::
internal
::
dynamic_format_specs
<
char
>
specs
;
test_context
ctx
;
test_context
ctx
{}
;
fmt
::
internal
::
dynamic_specs_handler
<
test_context
>
h
(
specs
,
ctx
);
fmt
::
internal
::
dynamic_specs_handler
<
test_context
>
h
(
specs
,
ctx
);
parse_format_specs
(
s
,
h
);
parse_format_specs
(
s
,
h
);
return
specs
;
return
specs
;
...
...
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