diff options
| author | Bob Jamison <ishmalius@gmail.com> | 2006-04-14 19:04:20 +0000 |
|---|---|---|
| committer | ishmal <ishmal@users.sourceforge.net> | 2006-04-14 19:04:20 +0000 |
| commit | a04ce130009c743ea3e5406a5394d03926b189a2 (patch) | |
| tree | fed9a812ce1c6a1864892b791cb835ccdb2c8584 /src | |
| parent | fix XMLCh/int warnings (diff) | |
| download | inkscape-a04ce130009c743ea3e5406a5394d03926b189a2.tar.gz inkscape-a04ce130009c743ea3e5406a5394d03926b189a2.zip | |
remove warnings
(bzr r523)
Diffstat (limited to 'src')
| -rw-r--r-- | src/dom/util/ziptool.cpp | 12 | ||||
| -rw-r--r-- | src/dom/util/ziptool.h | 2 |
2 files changed, 8 insertions, 6 deletions
diff --git a/src/dom/util/ziptool.cpp b/src/dom/util/ziptool.cpp index 701b9d9eb..e6d46557b 100644 --- a/src/dom/util/ziptool.cpp +++ b/src/dom/util/ziptool.cpp @@ -1539,7 +1539,7 @@ bool GzipFile::write() putByte(0);
//file name
- for (int i=0 ; i<fileName.size() ; i++)
+ for (unsigned int i=0 ; i<fileName.size() ; i++)
putByte(fileName[i]);
putByte(0);
@@ -1662,12 +1662,12 @@ bool GzipFile::read() //## compression method
if (!getByte(&ch))
return false;
- int cm = ch & 0xff;
+ compressionMethod = ch & 0xff;
//## flags
if (!getByte(&ch))
return false;
- bool ftext = ch & 0x01;
+ //bool ftext = ch & 0x01;
bool fhcrc = ch & 0x02;
bool fextra = ch & 0x04;
bool fname = ch & 0x08;
@@ -1680,17 +1680,17 @@ bool GzipFile::read() unsigned long ltime;
if (!getLong(<ime))
return false;
- time_t mtime = (time_t)ltime;
+ //time_t mtime = (time_t)ltime;
//## XFL
if (!getByte(&ch))
return false;
- int xfl = ch;
+ //int xfl = ch;
//## OS
if (!getByte(&ch))
return false;
- int os = ch;
+ //int os = ch;
//std::string timestr = ctime(&mtime);
//trace("xfl:%d os:%d mtime:%s", xfl, os, timestr.c_str());
diff --git a/src/dom/util/ziptool.h b/src/dom/util/ziptool.h index 88631c997..71f982e1b 100644 --- a/src/dom/util/ziptool.h +++ b/src/dom/util/ziptool.h @@ -216,6 +216,8 @@ private: bool putByte(unsigned char ch);
bool putLong(unsigned long val);
+
+ int compressionMethod;
};
|
