summaryrefslogtreecommitdiffstats
path: root/compat/zlib/gzlib.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2017-01-04 11:55:28 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2017-01-04 11:55:28 (GMT)
commit2d45ce8f574a9204a0462d5e27867fda53f09f05 (patch)
treee6ce8cd0415ba16e354de2c7599c45887540bef1 /compat/zlib/gzlib.c
parentbe0289c6ab1c90cdc651dd4219d6566e68ff5d3e (diff)
parentbb26d0f8e56031df2d501621e957a8069a7b0cee (diff)
downloadtcl-2d45ce8f574a9204a0462d5e27867fda53f09f05.zip
tcl-2d45ce8f574a9204a0462d5e27867fda53f09f05.tar.gz
tcl-2d45ce8f574a9204a0462d5e27867fda53f09f05.tar.bz2
merge core-8-6-branch
Diffstat (limited to 'compat/zlib/gzlib.c')
-rw-r--r--compat/zlib/gzlib.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/compat/zlib/gzlib.c b/compat/zlib/gzlib.c
index a87d3d1..e142ffb 100644
--- a/compat/zlib/gzlib.c
+++ b/compat/zlib/gzlib.c
@@ -211,7 +211,7 @@ local gzFile gz_open(path, fd, mode)
else
#endif
#if !defined(NO_snprintf) && !defined(NO_vsnprintf)
- snprintf(state->path, len + 1, "%s", (const char *)path);
+ (void)snprintf(state->path, len + 1, "%s", (const char *)path);
#else
strcpy(state->path, path);
#endif
@@ -293,7 +293,7 @@ gzFile ZEXPORT gzdopen(fd, mode)
if (fd == -1 || (path = (char *)malloc(7 + 3 * sizeof(int))) == NULL)
return NULL;
#if !defined(NO_snprintf) && !defined(NO_vsnprintf)
- snprintf(path, 7 + 3 * sizeof(int), "<fd:%d>", fd); /* for debugging */
+ (void)snprintf(path, 7 + 3 * sizeof(int), "<fd:%d>", fd);
#else
sprintf(path, "<fd:%d>", fd); /* for debugging */
#endif
@@ -608,8 +608,8 @@ void ZLIB_INTERNAL gz_error(state, err, msg)
return;
}
#if !defined(NO_snprintf) && !defined(NO_vsnprintf)
- snprintf(state->msg, strlen(state->path) + strlen(msg) + 3,
- "%s%s%s", state->path, ": ", msg);
+ (void)snprintf(state->msg, strlen(state->path) + strlen(msg) + 3,
+ "%s%s%s", state->path, ": ", msg);
#else
strcpy(state->msg, state->path);
strcat(state->msg, ": ");