Silence unused value warnings in perl binding code

sed -i 's/hv_store/(void) &/'

This only results in a warning in older gcc versions, but that includes
the one used in the Travis CI environment by default
This commit is contained in:
dequis 2014-12-20 19:46:12 -03:00
commit 8e8bc5fdbc
6 changed files with 247 additions and 247 deletions

View file

@ -160,5 +160,5 @@ CODE:
*str == '\0' ? NULL : str,
data, escape_vars);
hv = hvref(ST(0));
hv_store(hv, "min_size", 8, newSViv(item->min_size), 0);
hv_store(hv, "max_size", 8, newSViv(item->max_size), 0);
(void) hv_store(hv, "min_size", 8, newSViv(item->min_size), 0);
(void) hv_store(hv, "max_size", 8, newSViv(item->max_size), 0);