Repository: lucy-clownfish Updated Branches: refs/heads/master 39b0cb0c4 -> 77c771d02
Fix compiler warnings in XSBind.c Project: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/repo Commit: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/commit/77c771d0 Tree: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/tree/77c771d0 Diff: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/diff/77c771d0 Branch: refs/heads/master Commit: 77c771d02aeef9939b56af39439777b26c9d2cec Parents: 39b0cb0 Author: Nick Wellnhofer <[email protected]> Authored: Wed Mar 23 16:06:14 2016 +0100 Committer: Nick Wellnhofer <[email protected]> Committed: Wed Mar 23 16:44:43 2016 +0100 ---------------------------------------------------------------------- runtime/perl/xs/XSBind.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/lucy-clownfish/blob/77c771d0/runtime/perl/xs/XSBind.c ---------------------------------------------------------------------- diff --git a/runtime/perl/xs/XSBind.c b/runtime/perl/xs/XSBind.c index f0bf99c..17f0266 100644 --- a/runtime/perl/xs/XSBind.c +++ b/runtime/perl/xs/XSBind.c @@ -1105,7 +1105,7 @@ CFISH_Hash_To_Host_IMP(cfish_Hash *self, void *vcache) { // Using a negative `klen` argument to signal UTF-8 is undocumented // in older Perl versions but works since 5.8.0. - hv_store(perl_hash, key_ptr, -key_size, val_sv, 0); + (void)hv_store(perl_hash, key_ptr, -key_size, val_sv, 0); } if (cache == &new_cache && cache->seen) { @@ -1195,11 +1195,13 @@ cfish_TestUtils_clone_host_runtime() { void cfish_TestUtils_set_host_runtime(void *runtime) { + CFISH_UNUSED_VAR(runtime); CFISH_THROW(CFISH_ERR, "No thread support"); } void cfish_TestUtils_destroy_host_runtime(void *runtime) { + CFISH_UNUSED_VAR(runtime); CFISH_THROW(CFISH_ERR, "No thread support"); }
