|
From: Lasse Kärkkäi. <tr...@us...> - 2010-08-12 22:45:08
|
Module: performous
Branch: master
Commit: c0db3b7c1d3a2bfd0245e335844e325cede35ab3
Author: Lasse Karkkainen <tro...@tr...>
Date: Sun Jul 18 10:12:40 2010 +0300
Another way of struct initialization avoids GCC compile warnings.
---
tools/itg_pck.cc | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/tools/itg_pck.cc b/tools/itg_pck.cc
index 0593e37..0dbe4cf 100644
--- a/tools/itg_pck.cc
+++ b/tools/itg_pck.cc
@@ -46,7 +46,7 @@ struct Extract {
std::string ext;
if (file.mode == 1) {
std::vector<char> buf2(file.size);
- z_stream strm = {};
+ z_stream strm = z_stream();
strm.avail_in = buffer.size();
strm.next_in = reinterpret_cast<Bytef*>(&buffer[0]);
strm.avail_out = buf2.size();
|