aboutsummaryrefslogtreecommitdiffstats
path: root/ext/zlib
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-11-30 09:50:30 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-11-30 09:50:30 +0000
commit578deb65b090f0c1486f901ea2d00bb456f7f4c5 (patch)
tree9adfd46eab07f7af839f1206b2aec37319619e04 /ext/zlib
parent719e0cd530dd7187c716c103876fb3a112cbd30c (diff)
downloadruby-578deb65b090f0c1486f901ea2d00bb456f7f4c5.tar.gz
zlib.c: suppress warning
* ext/zlib/zlib.c (zlib_mem_alloc): suppress unused-value warning. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38047 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/zlib')
-rw-r--r--ext/zlib/zlib.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/zlib/zlib.c b/ext/zlib/zlib.c
index 8c3d84d4a3..9aa7697697 100644
--- a/ext/zlib/zlib.c
+++ b/ext/zlib/zlib.c
@@ -21,8 +21,8 @@
# define VALGRIND_MAKE_MEM_UNDEFINED(p, n) VALGRIND_MAKE_WRITABLE((p), (n))
# endif
#else
-# define VALGRIND_MAKE_MEM_DEFINED(p, n) /* empty */
-# define VALGRIND_MAKE_MEM_UNDEFINED(p, n) /* empty */
+# define VALGRIND_MAKE_MEM_DEFINED(p, n) 0
+# define VALGRIND_MAKE_MEM_UNDEFINED(p, n) 0
#endif
#define RUBY_ZLIB_VERSION "0.6.0"
@@ -588,7 +588,7 @@ zlib_mem_alloc(voidpf opaque, uInt items, uInt size)
deflate is performing a conditional jump that depends on an
uninitialized value. Isn't that a bug?
http://www.zlib.net/zlib_faq.html#faq36 */
- VALGRIND_MAKE_MEM_DEFINED(p, items * size);
+ (void)VALGRIND_MAKE_MEM_DEFINED(p, items * size);
return p;
}