summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2012-11-28 08:52:00 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2012-11-28 08:52:00 (GMT)
commit7cd225ff302c856ee3ae4b619279f627f4e3fadb (patch)
tree5ba9645fdff660c2dfde9109b2027530849e9d11
parentfa84674fb9e173ed280ddbf8cc565c4f911dea01 (diff)
downloadtcl-7cd225ff302c856ee3ae4b619279f627f4e3fadb.zip
tcl-7cd225ff302c856ee3ae4b619279f627f4e3fadb.tar.gz
tcl-7cd225ff302c856ee3ae4b619279f627f4e3fadb.tar.bz2
Silence some (unimportant) warnings from the MIPSpro compiler.
-rw-r--r--generic/tclZlib.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/generic/tclZlib.c b/generic/tclZlib.c
index c63c306..8fbe049 100644
--- a/generic/tclZlib.c
+++ b/generic/tclZlib.c
@@ -2180,7 +2180,8 @@ ZlibStreamSubcmd(
enum objIndices {
OPT_COMPRESSION_DICTIONARY = 0,
OPT_GZIP_HEADER = 1,
- OPT_COMPRESSION_LEVEL = 2
+ OPT_COMPRESSION_LEVEL = 2,
+ OPT_END = -1
};
Tcl_Obj *obj[3] = { NULL, NULL, NULL };
#define compDictObj obj[OPT_COMPRESSION_DICTIONARY]
@@ -2193,19 +2194,19 @@ ZlibStreamSubcmd(
static const OptDescriptor compressionOpts[] = {
{ "-dictionary", OPT_COMPRESSION_DICTIONARY },
{ "-level", OPT_COMPRESSION_LEVEL },
- { NULL, 0 }
+ { NULL, OPT_END }
};
static const OptDescriptor gzipOpts[] = {
{ "-header", OPT_GZIP_HEADER },
{ "-level", OPT_COMPRESSION_LEVEL },
- { NULL, 0 }
+ { NULL, OPT_END }
};
static const OptDescriptor expansionOpts[] = {
{ "-dictionary", OPT_COMPRESSION_DICTIONARY },
- { NULL, 0 }
+ { NULL, OPT_END }
};
static const OptDescriptor gunzipOpts[] = {
- { NULL, 0 }
+ { NULL, OPT_END }
};
const OptDescriptor *desc = NULL;
Tcl_ZlibStream zh;