[POCO::trunk] Remove warning issued by gcc 4.2.3

Details:

Add necessary initializer braces to make gcc 4.2.4 happy. (ArrayTest.cpp)
This commit is contained in:
Shan Jiang 2008-09-09 10:25:19 +00:00
parent e1dbbef72f
commit 6bf2319a9e

View File

@ -71,7 +71,7 @@ void ArrayTest::testConstruction()
typedef Poco::Array<double,6> DArray;
typedef Poco::Array<int,6> IArray;
IArray ia = { 1, 2, 3, 4, 5, 6 };
IArray ia = {{1, 2, 3, 4, 5, 6 }};
DArray da;
da = ia;
da.assign(42);
@ -130,7 +130,7 @@ void ArrayTest::testContainer()
{
const int SIZE = 2;
typedef Poco::Array<int,SIZE> Array;
Array a = { 1, 2 };
Array a = {{1, 2}};
assert(a[0] == 1);
assert(a[1] == 2);