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

@ -63,7 +63,7 @@ static void add_tuple(gpointer key_, gpointer value_, gpointer user_data)
HV *hash = user_data;
char *key = key_;
char *value = value_;
hv_store(hash, key, strlen(key), new_pv(value), 0);
(void) hv_store(hash, key, strlen(key), new_pv(value), 0);
}
static void wrap_signal_emit(void *signal, void **p) {