mirror of
https://github.com/boostorg/move.git
synced 2025-08-03 06:04:26 +02:00
Fix uninitialized variable warnings in GCC 4.9
This commit is contained in:
@@ -313,7 +313,7 @@ int main()
|
|||||||
{
|
{
|
||||||
container<int> c;
|
container<int> c;
|
||||||
{
|
{
|
||||||
int x;
|
int x = 0;
|
||||||
c.push_back(x);
|
c.push_back(x);
|
||||||
assert(c.construction_type() == Copied);
|
assert(c.construction_type() == Copied);
|
||||||
c.insert(c.begin(), c.construction_type());
|
c.insert(c.begin(), c.construction_type());
|
||||||
@@ -359,7 +359,7 @@ int main()
|
|||||||
{
|
{
|
||||||
container<int> c;
|
container<int> c;
|
||||||
{
|
{
|
||||||
int x;
|
int x = 0;
|
||||||
c.push_back(x);
|
c.push_back(x);
|
||||||
assert(c.construction_type() == Copied);
|
assert(c.construction_type() == Copied);
|
||||||
c.insert(c.begin(), c.construction_type());
|
c.insert(c.begin(), c.construction_type());
|
||||||
|
Reference in New Issue
Block a user