summaryrefslogtreecommitdiffstats
path: root/generic
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)
commitda12d58e11aba7b3a5f30364766ee0d5f30ce00b (patch)
tree5ba9645fdff660c2dfde9109b2027530849e9d11 /generic
parent9652ccdb2f5dbc810445ea5431b278cf4417a9c1 (diff)
downloadtcl-da12d58e11aba7b3a5f30364766ee0d5f30ce00b.zip
tcl-da12d58e11aba7b3a5f30364766ee0d5f30ce00b.tar.gz
tcl-da12d58e11aba7b3a5f30364766ee0d5f30ce00b.tar.bz2
Silence some (unimportant) warnings from the MIPSpro compiler.
Diffstat (limited to 'generic')
-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;